While I am reading a 25 MB file it's throwing an Java heap space. It can read 20 MB file but it's unable to read 25 MB file.
InputStream is = new ByteArrayInputStream(bean.getFile());
BufferedImage img = ImageIO.read(is);
While I am reading a 25 MB file it's throwing an Java heap space. It can read 20 MB file but it's unable to read 25 MB file.
InputStream is = new ByteArrayInputStream(bean.getFile());
BufferedImage img = ImageIO.read(is);