wprins Posted February 28, 2017 Share Posted February 28, 2017 What is the use of UniSession.SendStream()? In what context might one use it? Likewise UniSession.SendFile()? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted February 28, 2017 Administrators Share Posted February 28, 2017 Yes, it will send data to client which will be received as a file. Actually SendFile() uses SendStreams() internally. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted February 28, 2017 Share Posted February 28, 2017 You can send file or stream to client. UniSession.SendFile() is extended version of UniSession.SendStream Quote Link to comment Share on other sites More sharing options...
wprins Posted March 1, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 1, 2017 Administrators Share Posted March 1, 2017 Please review sendfile demo. Quote Link to comment Share on other sites More sharing options...
wprins Posted March 1, 2017 Author Share Posted March 1, 2017 Please review sendfile demo. Thanks, apologies for not finding this myself. Quote Link to comment Share on other sites More sharing options...
FlavioMacedo Posted April 10, 2017 Share Posted April 10, 2017 How to know the progress of downloading the downloaded file with the UniSession.SendFile () command Quote Link to comment Share on other sites More sharing options...
FlavioMacedo Posted April 11, 2017 Share Posted April 11, 2017 Please review sendfile demo. How to know the progress of downloading the downloaded file with the UniSession.SendFile () command Quote Link to comment Share on other sites More sharing options...
cyber233 Posted August 23, 2018 Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted August 23, 2018 Share 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 Link to comment Share on other sites More sharing options...
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.