Wisej.Web.Application.DownloadAndOpen

Answered
0
0

Dear Team,

I need to download a file from server to client and next delete it from server.

if I use the follow instructions:

Wisej.Web.Application.DownloadAndOpen(“_blank”, SessionFileName, LocalFileName)
IO.File.Delete(SessionFileName)

I get the error: HTTP Error 404.0 – Not Found;
I suppose because the file is deleted before the download is finished.
Any sugget to wait until download is finished and after delete the file?

Thanks in advance

  • You must to post comments
Good Answer
0
0

Hi Angelo

You can use  a stream.

Wisej saves the stream to the temp on the server and deletes it when downloaded.

 

Regards

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.