Does anyone know how WebClient.DownloadFileAsync is implemented ? I have a few questions about this:
- Is the stream returned saved in memory until the whole file downloads or is it buffered straight into a temp file ( and then copied to the correct path) ? or straight into the file indicated ?
Writing a simple WCF rest service to answer these calls would require the following:
set response headers - Content-Type: application/octet-stream Content-Length: 3 Content-Disposition: Attachment; filename=SomeFileName.jpeg
and return a byte
[]
Am I missing anything ?