Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > How to return image URL via web service

Reply
Thread Tools

How to return image URL via web service

 
 
Chris Wollesen
Guest
Posts: n/a
 
      11-29-2003
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.
 
Reply With Quote
 
 
 
 
Saurabh Nandu
Guest
Posts: n/a
 
      11-29-2003
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]


 
Reply With Quote
 
 
 
 
Arthur Nesterovsky
Guest
Posts: n/a
 
      11-30-2003
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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM
redirect URL's, return URL's, and URL Parameters Jon paugh ASP .Net 1 07-10-2004 05:29 AM
how to return web service calls via a different network route? Bob ASP .Net 1 05-27-2004 09:11 PM
how to return web service calls via a different network route? Bob ASP .Net Web Services 0 05-04-2004 08:17 PM



Advertisments