把图片转成base64之后,上传到Java后台,如何判断原来图片的格式?
黄舟
黄舟 2017-04-18 09:17:53
0
2
976

我后台收到了字符串,解析成图片的时候,如何判断图片的原来的格式?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all (2)
PHPzhong

Convert the image to base64 encoding. The type of the file will be indicated at the beginning, such as the data:image/image type mentioned above.

    洪涛

    data:image/png;base64,

    Don’t they all have heads similar to this?

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!