wprins Posted February 28, 2017 Posted February 28, 2017 What is the use of UniSession.SendStream()? In what context might one use it? Likewise UniSession.SendFile()? Quote
Administrators Farshad Mohajeri Posted February 28, 2017 Administrators Posted February 28, 2017 Yes, it will send data to client which will be received as a file. Actually SendFile() uses SendStreams() internally. Quote
Hayri ASLAN Posted February 28, 2017 Posted February 28, 2017 You can send file or stream to client. UniSession.SendFile() is extended version of UniSession.SendStream Quote
wprins Posted March 1, 2017 Author Posted March 1, 2017 Yes, it will send data to client which will be received as a file. Actually SendFile() uses SendStreams() internally. Sorry if this is a stupid question, but how would you actually send the file? In other words, what URL would you use to trigger the download/sending, and in what context? (I'm already sending files to the client but indirectly via the server module via assigning to the IdResponse.ContentStream. This works but is slightly awkward as it runs from the "server context" and so the process involves generating a custom URL that is then used in (for example) a link, and which is then recognized by the server module when passed back again. It would seem I'm missing or misunderstanding something obvious. Quote
Administrators Farshad Mohajeri Posted March 1, 2017 Administrators Posted March 1, 2017 Please review sendfile demo. Quote
wprins Posted March 1, 2017 Author Posted March 1, 2017 Please review sendfile demo. Thanks, apologies for not finding this myself. Quote
FlavioMacedo Posted April 10, 2017 Posted April 10, 2017 How to know the progress of downloading the downloaded file with the UniSession.SendFile () command Quote
FlavioMacedo Posted April 11, 2017 Posted April 11, 2017 Please review sendfile demo. How to know the progress of downloading the downloaded file with the UniSession.SendFile () command Quote
cyber233 Posted August 23, 2018 Posted August 23, 2018 Good night, old post, but my code does not work the sendfile. Compressed document is already in files of type * .RAR, but UniGui says that it did not find path. Can someone help me? on the local network works as shown in the demo. Quote
Sherzod Posted August 23, 2018 Posted August 23, 2018 Hello, Good night, old post, but my code does not work the sendfile. Compressed document is already in files of type * .RAR, but UniGui says that it did not find path. Can someone help me? on the local network works as shown in the demo. Can you please specify which edition and build of UniGUI are you using? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.