[SOLVED] Download Files

Answered Closed
0
0

Hi,

How to download files into client machine using a FileStream and/or MemoryStream?

A small sample project posted here would be highly appreciated

Thanks.

 

  • You must to post comments
Best Answer
0
0

There are fundamentally two ways:

  • the first is to save to a temp file.
  • the second is to hold on the stream and send it back on a postback.

Wisej supports both. The temp file is also automatically deleted as soon as it’s downloaded. However, access to the temp file download system is not exposed and it’s used internally with Application.Download(Image). Added enhancement to expose Application.Download(Stream): WJ-7380.

To handle postbacks on any component you need to implement the IWisejHandler interface. It gives you total control on what to return and how. See attached sample app. Any component (also non visual) can implement that interface.

HTH

Best,

Luca

Attachment
  • You must to post comments
Great Answer
0
0

Hi Cris,

Download(Stream) has been added in Wisej build 1.2.14 (as logged in WJ-7380)

Best regards
Frank

  • You must to post comments
0
0

Hi Luca,

It works.

Thanks.

  • You must to post comments
Showing 3 results