How can I read image from URL in Java?

前端 未结 3 1053
萌比男神i
萌比男神i 2020-12-30 05:11

I have servlet in my web application that serves images, and when I visit those urls with browser images are server correctly. Then I have this other servlet that resizes im

3条回答
  •  一整个雨季
    2020-12-30 05:36

    From the docs:

    If no registered ImageReader claims to be able to read the resulting stream, null is returned.

    Could it be that you have no registered ImageReader for the image type?

提交回复
热议问题