Solved

Viewing image in a secure directory

Posted on 2012-03-17
3
158 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

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…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

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