How to return image URL via web service

Discussion in 'ASP .Net Web Services' started by Chris Wollesen, Nov 29, 2003.

  1. I am looking to write a webservice that responds with a image URL and
    target url

    the two results will be seperatly requested.

    Basically I want people to be able to put this services link in the
    IMG tag and the href tag and get a database returned IMG path and href
    path. Does anyone have any places where I can see an example of this
    or have done it similarly themselves?

    For those that are interested I trying to expand the vendor banner
    system included in DNN to allow external sites running php or straight
    html to utilize the banner system. I have tried contacting the
    authors of DNN and haven't gotten any sugegstions so I figure I would
    come to google groups for some guidance.
     
    Chris Wollesen, Nov 29, 2003
    #1
    1. Advertising

  2. Hi,

    I am not sure if you can directly, call the web service in the Src tag of
    the Image. Since the web service will return a XML document containing the
    link. Although you could write a small JavaScript/JScript that calls the Web
    service, parses the Xml and returns the url to the image tag.

    But I am not sure if JavaScript is the solution if you want to go cross
    platform and are targeting all kinds of browsers.


    Regards,
    Saurabh Nandu
    [MVP]
     
    Saurabh Nandu, Nov 29, 2003
    #2
    1. Advertising

  3. Hi,

    > Basically I want people to be able to put this services link in the
    > IMG tag and the href tag and get a database returned IMG path and href
    > path. Does anyone have any places where I can see an example of this
    > or have done it similarly themselves?


    I didn't this, but I saw the answer to almost the same questions early.
    So, here is cite from that answer of Keith Ballinger:

    "...Have the url to the image (as found in the <img> tag) be image.ashx. In
    image.ashx, make a web service call with DIME and all, and then return the
    image from the stream directly back on the request of the ashx. For more on
    ashx files, look for HttpHandler in the .NET Framework docs..."

    Hope this help.
    --
    ______________________________
    With best wishes, Arthur Nesterovsky
    Please visit my home page:
    http://www.nesterovsky-bros.com
     
    Arthur Nesterovsky, Nov 30, 2003
    #3
    1. Advertising

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. Bob
    Replies:
    1
    Views:
    342
    =?Utf-8?B?cm9iZXJ0?=
    May 27, 2004
  2. Jon paugh
    Replies:
    1
    Views:
    940
  3. Bob
    Replies:
    0
    Views:
    119
  4. Rob
    Replies:
    3
    Views:
    519
    Steven Cheng[MSFT]
    Feb 3, 2006
  5. Tom

    Web Service access a file (read only) via a URL?

    Tom, Aug 10, 2006, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    136
Loading...

Share This Page