开发者

Check whether base64 string is a GIF image

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜