Question

ImageIo.read() doesn't work.the error tells that ImageIo class doesn't contains read method.like

    ByteArrayInputStream bais=new ByteArrayInputStream(logo);
    BufferedImage bimage=ImageIO.read(bais);

any one help me?

Was it helpful?

Solution

ImageIo is part of JRE not directly to android, so you may face problem!!

visit http://docs.oracle.com/javase/7/docs/api/javax/imageio/ImageIO.html

and we can say that Android is not stand art java - it lacks certain classes. what can be suggested is you can go for similar approaches and try to find out some similar straight solution or library project which can help you .

OTHER TIPS

Imaging libraries are not a part of Android development kit. if you want to display images in android you should use BitMap and BitMap Factory classes provided with Android.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top