Ok, now I've been trying to work out this problem for hours and hours, and drawn upon support from a handful of knowledgeble people - none of us has been able to figure it out...
The problem is that Bitmap.RawFormat isn't working like it's supposed to - let me explain: I'm trying to store the images using their original encoding/imageformat, and of course assumed RawFormat (type ImageFormat) would do as we are “promised”. At least I assume it is supposed to return a value declared in ImageFormat, but it doesn't. It simply returns an encoded string (would be helpful to know what encoding):
[ImageFormat: b96b3cae-0728-11d3-9d7b-0000f81ef32e]
I expected to see something simple as: Jpeg
I haven't yet tested this with any other image format. - Well if anyone has any kind of input on this, please let me know, as it is driving me nuts. If this is an expected behavior, I suggest the documentation gets updated, or better yet change this to reflect the actual ImageFormat type. In the meantime, I'm gonna have to dig out all the image format specs and create a helper class to read in the format directly from the binary data - yay! not...
[UPDATE: Problem solved - it was not with RawFormat the problem was it seems :/ Rather is was with non-seekable streams :D]