如何使用java在google appengine中读取图片网址

joh*_*vip 3 google-app-engine javax.imageio

ImageIO不在GAE的白名单中.如何在不使用ImageIO的情况下从url读取图像(JPG,PNG)作为ImageBuffer?

小智 6

只需使用内置API的Google App Engine

byte[] b = URLFetchServiceFactory.getURLFetchService().fetch( url ).getContent();
Run Code Online (Sandbox Code Playgroud)

不需要第三方图书馆!