Avatar of MissNicola
MissNicola
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Viewing image in a secure directory

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
Visual Basic.NET.NET ProgrammingASP.NET

Avatar of undefined
Last Comment
Nasir Razzaq

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Nasir Razzaq

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
MissNicola

ASKER
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
Nasir Razzaq

I am not sure about performance difference.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes