Image.FromStream( MemoryStream object )

You receive a “parameter invalid” exception when the format of the stream is not recognizable as an image. See

“Parameter not valid” exception loading System.Drawing.Image

Check the contents of the data you are receiving from your scontent.xx.fbcdn.n… URLs. Perhaps they are a 404 error, or some other content, rather than valid image data.

Leave a Comment