Response.BinaryWrite PROBLEM !!?? Posted: 30 Dec 2004
when using "Response.BinaryWrite rs("File Data")" when i click on the file or "save target as " , the browser show the save as dialog , and the file name as "File.asp" ??
how to change the file name of the file being saved ??? i don't want to change the file name everytime i save it ? i just want to save it with it's "Original" file name !!
Re: Response.BinaryWrite PROBLEM !!?? Posted: 3 May 2006
All you need to do is add the following line before you do the binary write: Response.AppendHeader("Content-Disposition", "attachment; filename=[TheFileNameYouWant.jpg]"); Replace [TheFileNameYouWant.jpg] with anything you want to appear in the save as dialog.