To get an image from HTTP, you need to download it. You don't even need to download it to temporary file (
https://msdn.microsoft.com/en-us/library/system.io.path.gettempfilename%28v=vs.110%29.aspx), as you can read the image to some stream.
Please see all the methods
System.Net.WebClient.Download*
:
https://msdn.microsoft.com/en-us/library/system.net.webclient%28v=vs.110%29.aspx.
So, as you can see, not only you can download image to a temporary file, you can also download it to memory, to read the image directly from memory stream. However, this is not the best way.
Better yet, you can use the class
System.Net.HttpWebRequest
, get an HTTP response and open the response stream, to read the image from:
https://msdn.microsoft.com/en-us/library/system.net.httpwebrequest%28v=vs.110%29.aspx.
From the stream, you can read the image:
https://msdn.microsoft.com/en-us/library/system.drawing.image.fromstream%28v=vs.110%29.aspx.
Finally, you can assign the image you read to the property
PictureBox.Image
:
https://msdn.microsoft.com/en-us/library/system.windows.forms.picturebox.image%28v=vs.110%29.aspx.
—SA