Hi,
I have saved my file in our database. I am then reading the file in bytes.
Now I want to retrieve the saved file. If the user clicks the button I want to open the file save as dialog where the
users can save the file. How can I do so.
I ws using this code, but this does not works:
Response.Clear();
Response.Buffer = true;
Response.AddHeader("content-disposition", "attachment;filename=" + file);
Response.ContentType = "application/octet-stream";
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.BinaryWrite(bytedata);
Response.End();
Anys suggestions
Thanks