Jump to content

UniSession.SendStream(), UniSession.SendFile()


wprins

Recommended Posts

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.

Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...

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?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...