ASP.NET - fast Segmented downoad of file through webservice
Posted
by H4mm3rHead
on Stack Overflow
See other posts from Stack Overflow
or by H4mm3rHead
Published on 2010-03-15T15:52:24Z
Indexed on
2010/03/15
15:59 UTC
Read the original article
Hit count: 306
ASP.NET
|webservice
Hi, Im doing this project where i need to download files through a webservice (images, videos). The download MUST go through an existing webservice. The existing webservice was made when there were no need to upload and download files but the project has changed and now we need to do It through a webservice.
Right now I have implemented the download as a method that returns a byte[], I open a streamreader and resds the entire file into a byte[] and returns it to my method. This is working file on small files <~1Mb, above it takes too long time. I want to show some progress (e.g. when the user downlaods a 20Mb video) which i cannot do right now. And i want to make it download much faster (is a strategy to use multithreading and several threads that downloads a part of the file?). It is within a WPF application i need to do this.
Any ideas on how to approach this?
© Stack Overflow or respective owner