@Override public void loadImage(InputStream data, String contentType) throws IOException { img = readImage(data, contentType); }
@Override public void loadImage(byte data[], String contentType) throws IOException { img = readImage(new ByteArrayInputStream(data), contentType); }
@Override public void loadImage(InputStream data, String contentType) throws IOException { img = readImage(data, contentType); }
@Override public void loadImage(byte data[], String contentType) throws IOException { img = readImage(new ByteArrayInputStream(data), contentType); }