473,508 Members | 2,389 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

display images from remote site

2 New Member
I would like to dispaly some images from a remote site (I have permission) on my asp.net page. The site required authentication. How do I retrieve the images and send the credentials without the user being prompted for it at page load?

I was hoping to avoid downloading the images and saving them locally. There's potential thousands of pictures. I guess I could write a clean up script to delete the downloaded pictures month and an if file exists statement. Any other ideas?

Edit:

I should also note that the url for the images is like this:

http://*******.com/********&ID=2713187:1

There must be away to supply user credentials when requesting the image (which is where I'm having the problem) The following code works to retrieve other information from the same site (but different page). So how do I get this to work for the image? Without downloading it.



Expand|Select|Wrap|Line Numbers
  1. Dim request As HttpWebRequest = TryCast(WebRequest.Create(url), HttpWebRequest)
  2.  
  3. request.Credentials = New NetworkCredential(username, password)
  4.  
  5. Dim docresponse As WebResponse = request.GetResponse()
  6. Dim responsestream As Stream = docresponse.GetResponseStream()
Feb 13 '09 #1
2 2111
kenobewan
4,871 Recognized Expert Specialist
Ask if they will host a template page for you so that you can retain your navigation, but don't have to host the images?

Another option would be to have the thumb library on your site, with a link opening the full image on their site in a new window?
Feb 15 '09 #2
csihosting
2 New Member
Thanks for the reply, but neither of those things are really an option. Any other ideas? If I have to, I'll setup the script to download the images on demand, then delete them every month to save space on my server. So my other question is how do I get asp.net (vb) to download images and save them as a jpeg while sending credentials at the same time? Thanks
Feb 16 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

21
20596
by: Dan V. | last post by:
I have tried a number of things including preloading, but the background image (water tile in header) in IE 6 will not display where other browsers will....
61
4667
by: phil-news-nospam | last post by:
Why does SVG need a different tag than other images? IMHO, SVG should be implemented as an image type just like any other image type, allowing it to work with <img> tags, and ... here is the...
12
1616
by: Jon B | last post by:
Hi There! For some reasons, some images of my ASP.NET website are cannot be displayed in the browser (even tho they exists on the server). They are just normal JPG and PNG images and the website...
2
1763
by: * Tong * | last post by:
Hi, I'm wondering if you can show me an example php page that allows me to retrieve and display 3rd party pages. I.e., when my php script is called as http://site/path/getit.php?file_key it...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5049
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.