我正在制作项目,其中包括从云(Azure)存储下载文件。我想打开另存为对话框但没有得到它。我使用了以下代码。
enter code here // Retrieve reference to a blob named "myblob".
CloudBlockBlob blockBlob = container.GetBlockBlobReference("myblob1");
string FileName = "a3.jpg";
string Filename = FileName.Substring(0, FileName.LastIndexOf("."));``
Response.AppendHeader("Content-Disposition", "attachment; filename=" FileName);
Response.TransmitFile(Server.MapPath("~/blockBlob/myblob1/" + Filename));
Response.End();
/* to download file from cloud
使用(var fileStream =System.IO.File.OpenWrite(@"C:\Users\prak\Pictures\ppp.JPG")) { blockBlob.DownloadToStream(fileStream); Response.Write("
"); Response.Write("下载成功!"); }*/
请帮助...在此先感谢