Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2003

Tip: Looking for answers? Try searching our database.

How to return image URL via web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Wollesen - 29 Nov 2003 04:26 GMT
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.
Saurabh Nandu - 29 Nov 2003 05:39 GMT
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]
Arthur Nesterovsky - 30 Nov 2003 08:19 GMT
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.
Signature

______________________________
With best wishes, Arthur Nesterovsky
Please visit my home page:
     http://www.nesterovsky-bros.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.