+1  A: 

Just tested your code, it worked, the code is fine. There must be a problem with the image file or path. This is my test:

private void Form1_Load(object sender, EventArgs e)     
       {
            byte[] data = File.ReadAllBytes("c:\\t.jpg");

            using (Stream originalBinaryDataStream = new MemoryStream(data))
            {
                // This works perfectly fine, if use this method (which i can't).
                //image = new Bitmap("Chick.jpg");


                // This throws an exception when it's deserialized.
                // It doesn't like the memory stream reference?
                originalBinaryDataStream.Seek(0, SeekOrigin.End);
                pictureBox1.Image=  new Bitmap(originalBinaryDataStream);
            }
        }

And I see the image in the PictureBox.

Ovidiu Pacurar
+1  A: 

I suspect that in your real code you are writing to a MemoryStream and not rewinding it; if this is the case, set Position to 0 before you try to re-load it.

Marc Gravell
He does not write to the memory stream, he initializes it with a byte array. No reposition required.
Ovidiu Pacurar
@Ovidiu - hence my mention of "real code"....
Marc Gravell
I wonder what P.K says.
Ovidiu Pacurar
I added a seek to end on the memory stream and it still works, see my answer.
Ovidiu Pacurar
We need the entire context of the code and the exception thrown.
Ovidiu Pacurar
I've added the entire exception info in a screenshot (cause it's a massive exception) to the opening post.
Pure.Krome
A: 

I've updated the initial question post with a link the entire VS solution (which is one class and one unit test). The unit test throws the fail fail fail exception. Please check it out.

Pure.Krome
No repro either, the unit test worked fine. You'll have to post the stack trace of the exception. At least the chick was worth it.
Hans Passant
Hmm. i just dl'd the solution and repo'd the exception. I've added the steps to repo it, up in the original post. Please check out how it's repo'd. pwease?
Pure.Krome
You should post the exception thrown, as suggested earlier.
Frank Schwieterman
Added links in the original post that show the exception.
Pure.Krome
A: 

Anyone else have any suggestions?

Pure.Krome