Last post Aug 25, 2014 10:39 PM by Summer - MSFT
Aug 25, 2014 01:47 AM|venkatesh.naik|LINK
We are developing a Cloud Infrastructure, We are storing User files in our data center Files varies from 1 MB to 1GB,
When User downloads his files what is the best way to stream it
1) By using WCF Service, By converting it to Bytes and sending it to the user (What if File is to Large)
2) By using FTP
Any other idea's
Aug 25, 2014 10:39 PM|Summer - MSFT|LINK
According to your description, I know you want to find a better way to stream the files when one user download it.
As far as I know, may be using the WCF Service is a better way.
To transfer large files using “WCF service + HTTP”, we can use the following types of bindings:
In wsHttpBinding, we can set the transfermode attribute as Buffered, but there is a disadvantage in using this approach for large files, because it needs to put the entire file in memory before uploading/downloading, A large buffer is required on both the
web client and the WCF service host. However, this approach is very useful for transferring small files, securely.
In basicHTTPBinding we can use the transfermode as Streamed so that the file can be transferred in the form of chunks. We have to ensure additional security mechanisms for transferring chunks. The security mechanisms are not explained in this posting.
These are some articles about the WCF Service, please refer to the link below, hope this can be helpful to you.
If you have any other questions, please feel free to post this forum.