With the following code I am able to stream a jpeg to the browser fine but I can't seem to get the image to save to disk.. for some reason my code is corrupting the image.
Another odd problem is trying response.write before and after Response.BinaryWrite when sending directly to the browser. If I response.write plain text my image does not show up, or vice-versa if I response.write after the Response.BinaryWrite.
Any help with this would be greatly appreciated.
Thanks in advance
strFilePath = "c:\path_to_dir\search\ima
set objXMLHTTP1 = Server.CreateObject("Micro
objXMLHTTP1.Open "POST", strURL,false
Response.Buffer = TRUE
Response.Expires = 0
Response.ContentType = "image/jpeg"
'***** THIS WORKS
const adTypeBinary = 1
const adModeWrite = 2
const adModeReadWrite = 3
const adCreateOverwrite = &H4000000
Set objStream = Server.CreateObject("ADODB
objStream.Type = adTypeBinary
'***** THIS DOES NOT
Set objStream = Nothing
Set objXMLHTTP1 =nothing