Hi Julian,
I switched from Image/MemoryStream to FileStream as you suggested and
this has resolved the issue! Many thanks - I've been banging my head
against a brick wall way too long on this issue.
Then I moved onto the next stage of my mini-project. I'm using a 3rd
party library to read vCard files. In the vCard library, the Photo
field is implemented as an Image. So I'm back to square one! Although
at least now I know that the problem has something to do with the
Image.Save( Stream, ... ) function.
I did a little more testing and found out the following:
* Tried Image.Save( MemoryStream, Image.RawFormat ) - that didn't make
any difference.
* Tried Image.Save( MemoryStream, ImageCodecInfo, Parameters ) passing
up the Compression parameter for a Jpeg. This also made no difference.
* Tried Image.Save( FileName ) and then opened the file using a newly
constructed FileStream. This worked, so there must something I'm
missing with the other versions of the routine.
I'd like to do this in memory. Any suggestions?
Regards,
Camel