开发者

Check whether base64 string is a GIF image

开发者 https://www.devze.com 2023-02-16 10:40 出处:网络
I have a base64 encoded string and I want to find out whether that string contains开发者_如何学编程 a GIF image or not.

I have a base64 encoded string and I want to find out whether that string contains开发者_如何学编程 a GIF image or not.

How will I do that in C#?


  1. Decode from base 64.
  2. Examine the file header.
  3. If the first three bytes are GIF, it's a GIF.
0

精彩评论

暂无评论...
验证码 换一张
取 消