K
klj_mcsd
I get the file in the webservice like this.
bImage = New Bitmap("C:\Inetpub\wwwroot\images\GR4001.PNG")
'Save as PNG file
bImage.Save(bFile,
System.Drawing.Imaging.ImageFormat.Png)
'Return Binary file in a byte array
Return bFile.GetBuffer()
Now I call the webservice like this.
Response.ContentType = "image/png"
Set objHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP")
' Point to an image file with adequate access permissions granted
objHTTP.open "GET",
"http://localhost/wsImage/wsImage.asmx/GetSpecimenImage", false
objHTTP.send
Response.BinaryWrite objHTTP.ResponseBody
Set objHTTP = Nothing
Nothing appears in the browser window but I get the binary back. Please
Help
bImage = New Bitmap("C:\Inetpub\wwwroot\images\GR4001.PNG")
'Save as PNG file
bImage.Save(bFile,
System.Drawing.Imaging.ImageFormat.Png)
'Return Binary file in a byte array
Return bFile.GetBuffer()
Now I call the webservice like this.
Response.ContentType = "image/png"
Set objHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP")
' Point to an image file with adequate access permissions granted
objHTTP.open "GET",
"http://localhost/wsImage/wsImage.asmx/GetSpecimenImage", false
objHTTP.send
Response.BinaryWrite objHTTP.ResponseBody
Set objHTTP = Nothing
Nothing appears in the browser window but I get the binary back. Please
Help