Hi - am using the following to popup a 'save as' dialog
the save as dialog popsup, and i click save but then get an error
any ideas welcome - have read this could be a buffer problem ?
Code:
Response.ContentType = "image/GIF" ' arbitrary
fn = x_url '"whatever.jpg"
FPath = "c:\" & fn
Response.AddHeader "Content-Disposition","attachment; filename=" & fn
Set adoStream = CreateObject("ADODB.Stream")
adoStream.Open()
adoStream.Type = 1
adoStream.LoadFromFile(FPath)
Response.BinaryWrite adoStream.Read()
adoStream.Close
Set adoStream = Nothing
Response.End
the save as dialog popsup, and i click save but then get an error
Code:
Internet explorer cannot download myfile.gif from localhost.
Internet explorer was not able to open this internet site.
any ideas welcome - have read this could be a buffer problem ?