Quote Originally Posted by Maejie View Post
Thank you BigEd781,
I do as what you suggest me,
I now don't know how to change the byte array back into an image ?

I have tried

Image img=Image.FromStream(ms);

but the compiler states that ms is an invalid argument in the debug view, although I find that all of its properties are initialised.
Did you call ms.Close(); as Big Ed suggested?

Once you call close on the memory stream you can't use it anymore.