Download Files

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
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
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
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
Showing 3 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 1, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json