Getting an image from web service directly from client

Discussion in 'ASP .Net Web Services' started by Jeff Robichaud, Nov 22, 2005.

  1. 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...
     
    Jeff Robichaud, Nov 22, 2005
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bert Leu
    Replies:
    1
    Views:
    643
    Cowboy \(Gregory A. Beamer\)
    Nov 23, 2007
  2. Rahul
    Replies:
    5
    Views:
    570
    John Saunders [MVP]
    Mar 1, 2008
  3. Navin Mishra

    Executing a web service dll directly

    Navin Mishra, Apr 5, 2005, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    199
    Lionel LASKE
    Apr 7, 2005
  4. Replies:
    0
    Views:
    384
  5. mikey
    Replies:
    1
    Views:
    168
    Emil Kvarnhammar
    Nov 3, 2005
  6. Curt K
    Replies:
    3
    Views:
    715
    John Saunders [MVP]
    Jun 15, 2007
  7. Bert Leu

    Creating a Web Service (Service, not Client) from WSDL

    Bert Leu, Nov 23, 2007, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    417
    Cowboy \(Gregory A. Beamer\)
    Nov 23, 2007
  8. Leo Violette
    Replies:
    0
    Views:
    1,316
    Leo Violette
    Apr 17, 2009
Loading...