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
> Nothing appears in the browser window but I get the binary back.
Hi,
you can use aspx page to return image data to the client. IMHO web service
call won't work since the web service returns soap body in the HTTP stream
and the img tag expects binary data instead.
Look here for an example [1].
[1] http://www.csharp-station.com/Articles/Thumbnails.aspx
HTH,

Signature
Martin Kulov
http://www.codeattest.com/blogs/martin
MCAD Charter Member
MCSD.NET Early Achiever
MCSD
Saverio Tedeschi - 19 Jul 2005 21:26 GMT
Hi,
maybe you could use DIME to transfer binary content thru web service. HTH
>> Nothing appears in the browser window but I get the binary back.
>
[quoted text clipped - 8 lines]
>
> HTH,