Ask a Question related to ASP.NET Web Services, Design and Development.
-
klj_mcsd@hotmail.com #1
Please Help with webservice.
I get the file in the webservice like this.
bImage = New Bitmap("C:\Inetpub\wwwroot\ima*ges\GR4001.PNG")
'Save as PNG file
bImage.Save(bFile,
System.Drawing.Imaging.ImageFo*rmat.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.Se*rverXMLHTTP")
' 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
klj_mcsd@hotmail.com Guest
-
Can a webservice call another webservice?
Hi all, I want one WebService I have, say on a server in Los Angeles, to call methods I have in a 2nd WebService on another server, say in New... -
Calling a webservice from a webservice
Well, I dont really want to call a webservice, but the class that I need is in a webservice and I dont see the need for serialization if I am... -
How to communicates with another webservice with another webservice
H I have a task to write a webservice which communicates with another webservice and gets all the methods of that webservice So can i get those ... -
Webservice calling a webservice.....Error
Hi Ihave a strange problem .....or?? On one machine 1 i have a webservice A calling an other webservice B on a other machine 2 . the B service are... -
webservice asp.net
How do I call a webservice from a webapplication in ASP.NET?? I do not have any experience Can you recommenc me good books?? thank you -
Martin Kulov #2
Re: Please Help with webservice.
<klj_mcsd@hotmail.com> wrote in message
news:1121195894.734746.60820@g47g2000cwa.googlegro ups.com...> 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] [url]http://www.csharp-station.com/Articles/Thumbnails.aspx[/url]
HTH,
--
Martin Kulov
[url]http://www.codeattest.com/blogs/martin[/url]
MCAD Charter Member
MCSD.NET Early Achiever
MCSD
Martin Kulov Guest
-
Saverio Tedeschi #3
Re: Please Help with webservice.
Hi,
maybe you could use DIME to transfer binary content thru web service. HTH
"Martin Kulov" <kulov@bezbokluk.abv.bg> ha scritto nel messaggio
news:%23LcxkI%23iFHA.3064@TK2MSFTNGP15.phx.gbl...> <klj_mcsd@hotmail.com> wrote in message
> news:1121195894.734746.60820@g47g2000cwa.googlegro ups.com...>>> 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] [url]http://www.csharp-station.com/Articles/Thumbnails.aspx[/url]
>
> HTH,
>
> --
> Martin Kulov
> [url]http://www.codeattest.com/blogs/martin[/url]
>
> MCAD Charter Member
> MCSD.NET Early Achiever
> MCSD
>
Saverio Tedeschi Guest



Reply With Quote

