Quote Originally Posted by Joacim Andersson View Post
It would be nice if you temporarily removed your Try Catch code so that you could tell us which line you're getting the error. But I suspect that you get it on your Using stream line and that your pictureData is null.
Yes you are right I'm getting an error on that line.
here is the screen shot without Try and catch

Name:  Buffer_error_1.png
Views: 1760
Size:  11.4 KB
How can I change the code to make it work?