K
klj_mcsd
I'm returning the binary data from my webservice and it works but I'm
having problems rendering the image in an <img> tag in my web browser.
The code I'm using is below:
Dim wsurl
wsurl = "http://localhost/wsImage/wsImage.asmx/GetImage?sSpecNo=" & "1"
Dim xmlhttp
Set xmlhttp=Server.CreateObject("MSXML2.ServerXMLHTTP")xmlhttp.open
"GET",wsurl,false
xmlhttp.send
Response.ContentType = "image/png"
Response.BinaryWrite xmlhttp.responsebody
Set xmlhttp=nothing
Response.End
I am calling this code from my image tag
having problems rendering the image in an <img> tag in my web browser.
The code I'm using is below:
Dim wsurl
wsurl = "http://localhost/wsImage/wsImage.asmx/GetImage?sSpecNo=" & "1"
Dim xmlhttp
Set xmlhttp=Server.CreateObject("MSXML2.ServerXMLHTTP")xmlhttp.open
"GET",wsurl,false
xmlhttp.send
Response.ContentType = "image/png"
Response.BinaryWrite xmlhttp.responsebody
Set xmlhttp=nothing
Response.End
I am calling this code from my image tag