Creating animated gifs from binary data using C #

I am creating my own application in C # 2010 to copy images from Lotus Notes to sharepoint. I am using domino to read content from Notes. Notes have a built-in animated gif, and when I read the content, it comes in base64Stream bytes. If I save the content with the extension .gif, the image will be saved in order, but it will lose the animation.

Could you let me know how to save an image with an animation from base64Stream bytes?

+4
source share
1 answer

If you are 100% sure that you just write bytes without any changes, then it seems to me unlikely that the animation was lost in the process of writing it.

Either after you write this, you look at it so that it doesn’t display the animation, or the bytes that you write do not have animation in any case.

Do you have any way to directly compare both gifs (the one stored in the notes and the one you wrote out)? If you can do this, you can check that the bytes do not match (my money on both files will have different sizes).

My current suspicion is that when you get a gif using notes, it does not capture the gif and just captures the first frame (MS Paint does the same as the example).

+1
source

Source: https://habr.com/ru/post/1388021/


All Articles