Click here to Skip to main content
14,326,008 members
Rate this:
Please Sign up or sign in to vote.
See more:
How to bind image to datagridview image column(windows application) .Image saved in my web server folder.


Below is my code
picSupport.Image = Image.FromStream(
System.Net.HttpWebRequest.Create("http://www.sample.com/Photo/Test.Jpg")
.GetResponse().GetResponseStream());

It works perfectly .But after few days it shows an error .

"remote server return an error(403) forbidden "


Please help me
Posted
Updated 2-May-13 21:35pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100