You can read the url stream and create a bytearray using IOUtils from apache shared resources.
URL url = new URL(this.url); InputStream input = url.openStream(); byteArray = IOUtils.toByteArray(input)
Note:
toByteArray method buffers the input internally, so there is no need to use BufferedInputStream .
EDIT:
BufferedImage is listed as not supported by AppEngine; this means that you CANNOT use this third-party library in the Google App Engine.
source share