Simple fix - you are asking it to save the gif **as a protobuf**,
which means it'll include a few extra things (like a dummy field and a
length prefix). Simply replace the line (incorrect):

    Serializer.Serialize(targetImage,img2.ImageJPGData);

with (correct):

    File.WriteAllBytes(targetImage, img2.ImageJPGData);

Job done.

Let me know if you get any other problems,

Marc Gravell

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to