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

Popular posts from this blog

c - CUDA code not processing if block properly -

amazon web services - The request could not be satisfied in while using <alphaNumeric-string>.cloudFront.net -

Android Capture Image From Camera -