c# - How to receive a plain web response in the format of a photo and show it in a picture box? -
there website sends photos of users in plain text. link pages follows:
http://example.com/getphoto.asp?id=0123456789
how can implement windows forms application in c# or vb.net receives plain data , shows image in picturebox
?
var url = "http://example.com/getphoto.asp?id=0123456789"; using (var wc = new webclient()) { picturebox1.image = image.fromstream(wc.openread(url)); }
Comments
Post a Comment