How to load the image into PictureBox?

vamsankar used Ask the Experts™
Hello All,

I want to display image dynamically from my website to my windows mobile application.

For example,
string StrFile = "";
pictureBox.Image = StrFile;

Thanks and Regards,
Sankar M
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
1. Create HttpWebRequest and get the response

                HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
                req.Method = "GET";
                HttpWebResponse resp = (HttpWebResponse)req.GetResponse();

2. Read the response with
               Stream respStream = resp.GetResponseStream();

3. Finally either save the image or use this stream to create Bitmap object

4. Assign it to the picturebox

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial