How to return image URL via web service

C

Chris Wollesen

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.
 
S

Saurabh Nandu

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]
 
A

Arthur Nesterovsky

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.
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top