Download Store File using Response (I don't want blob)

Copper Contributor

I'm trying do download file using Response (azure store file), but I don't know how. Can someone help me?

Response.Charset = "UTF-8";
//Important to set buffer to false. IIS will download entire blob before passing it on to user if this is not set to false
Response.Buffer = false;
Response.AddHeader("Content-Disposition", "attachment; filename=\"" + filename + "\"");
Response.AddHeader("Content-Length", "100122334"); //Set the length the file
Response.ContentType = "application/octet-stream";
Response.Flush();

I really appreciate the help. Thank you!

 

 

0 Replies