Getting an image from web service directly from client

J

Jeff Robichaud

Hello,

I currently have a web page with an image. The SRC attribute of the IMG tag
calls a web page (aspx) that returns a MIME image/jpeg (something like IMG
SRC="GetImage.aspx"). I'm skipping the details of why it is like that. Now
some new specs want the server-side code to get the image held in web
service instead of an web application.

A first approach to using the web service is to call the web service from
the application. Not much complicated with .NET, though it's been slowed
down very slighty due to serialization to XML (as I think I understood).

Now if I want to bypass the call to GetImage.aspx and call directly the web
service directly from within the client...using the Web Service Behavior
(htc)...

#1. Is it possible to handle the XML on the client side and get the IMG to
display ?
#2. What are the pros and cons of using this approach ?
#3. Are web services meant to be called from web/windows applications,
directly from web browsers, or both ?

Ok enough...thanks to anyone willing to enlighten me a little...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,237
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top