Ask a Question related to ASP.NET Web Services, Design and Development.
-
klj_mcsd@hotmail.com #1
Display Image Binary data in Web Browser
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
klj_mcsd@hotmail.com Guest
-
Display BInary TIF file from database?
Is there a way to pull a TIFF binary field from a database and display it in a cold fusion page? I have it working part time with an ASP page and a... -
encrypting data in PHP and then display it unencrypted back to the browser
I want to store some information in mySQL and want to encrypt it so that it isnt easily read by anyone else. But then I want to be able to deencrypt... -
How to convert JPEG image into a binary data?
Hi, Using ASP and VBScript. How to convert JPEG image into a binary data? Is it possible with a command from ASP / VBScript without having to put... -
I need to display a PDF from SQL Binary Field
I am trying to display a PDF from SQL. All I am getting is garbage that looks like this: %PDF-1.3 %âãÏÓ 37 0 obj << /Linearized 1 /O 39 /H /L... -
Secure binary files with ASP.NET and open PDF with Browser
Open Binary files with ASP.Net Posted: 07-08-2003 05:47 PM I am trying to protect PDF files with a form that asks the user to enter name and... -
Keenan Newton #2
Re: Display Image Binary data in Web Browser
One way to do is is mage the img src point to an ASPX page that outouts
the binary. Does this answer your question?
Keenan Newton Guest
-
Pete Wood #3
Re: Display Image Binary data in Web Browser
Yes its a problem. You can construct an ASPX page with a graphic <IMG> with
src= "/images/mydownload.jpg". You can then write the binary data to the
exact same file location, and over-ride the "dummy" file that was there
already. I have an example somewhere, so let me know if this isn't clear
and I'll dig it out for you - it may take a while!
--
Pete Wood
Contact me at [url]http://www.webserviceshelp.org[/url] for more help
__________________________________________________ _______
<klj_mcsd@hotmail.com> wrote in message
news:1121109118.316348.196630@g47g2000cwa.googlegr oups.com...> 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
>
Pete Wood Guest
-



Reply With Quote


