search

Home  >  Q&A  >  body text

微信下载图片返回content-Type是image/jpeg,但是未见后缀名是xx.jpg,java大几率读取报空指针

微信下载图片返回content-Type是image/jpeg,但是文件后缀名是xx.jpg,这是什么情况?
而且
BufferedImage srcImg = ImageIO.read(input); 读取图片流报空指针?几率很大

迷茫迷茫2802 days ago826

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-04-18 09:59:40

    image/jpeg 是图片的格式
    xx.jpg 这个jpg is the expression of the above format

    The null pointer problem can only be found line by line slowly...

    reply
    0
  • Cancelreply