Solved

Viewing image in a secure directory

Posted on 2012-03-17
3
157 Views
Last Modified: 2012-03-18
Hello all,

I am trying to display an image on my PictureBox1 which is retrieved from a secure directory on my server. On Firefox, I have to add my username/password to view the image. How would I add my username and password to make my application show on it's form the image on picturebox1?

This is what I have:

    Dim s As String
        s = "http://3xx.xxx.xx.xxx:81/" & lblvalue.Text & ".jpg"
        PictureBox1.ImageLocation = s
0
Comment
Question by:MissNicola
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 200 total points
ID: 37733801
You have to download it to a local file and then use it.

My.Computer.Network.DownloadFile method takes the username and password parameters

http://msdn.microsoft.com/en-us/library/ack30t8y(v=vs.80).aspx
0
 

Author Closing Comment

by:MissNicola
ID: 37734887
Thanks, I have use the  Dim req As Net.HttpWebRequest = Net.HttpWebRequest.Create(s) method and it worked as well. Do you think there's a difference in performance between these two methods?

Cheeres
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37735060
I am not sure about performance difference.
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question