Thanks for your answer.
Here is my code:
Response.Buffer = true;
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.AddHeader("Content-Disposition", "attachment;filename=" +
Server.UrlEncode(doc.FileName));
Response.AddHeader("Content-Length", doc.FileSize.ToString());
Response.Charset = "UTF-8";
Response.ContentType = doc.ContentType;
Response.BinaryWrite(doc.Image);
Response.Flush();
Response.End();
"Hans Kesting" <ne***********@spamgourmet.com> skrev i meddelandet
news:%2****************@TK2MSFTNGP11.phx.gbl...
Henke wrote: I have a web application that is used to transfer files to and from a
database. The files are streamed and stored in the database that is.
From one page I can download the files to the client, by clicking on
the filename.
The confirm download popup (the one built-in in IE) is displayed and
I can select either Save or Open.
One the file name row the name of the file is displayed but all " "
(spaces) are replaced with a "+"-sign. Does anybody know why this
happens anf how it can be solved?
Thanks!
/Henke
How do you upload the files? Are you using a "Content-Disposition"
http-header? There you can specify a filename to use.
One reason why spaces are translated to plus-signs could be "URLencoding",
but I don't know why that happened in you code (as you didn't give it).
Hans Kesting