Reading Image files.

B

Bhanu

Hi,

Whenever i m trying to read an image using either ImageIO.read(..)
or
new ImageIcon("path to file");

there seems to be a problem when image size is more than 200kB

Can anyone tell me what may be the reasons for this.

Thanks
 
A

Andrew Thompson

Bhanu wrote:

Please refreain from top-posting, even replies to your own posts
Bhanu wrote: .... ...
I am trying to read bmp images

I just tried loading two BMP's from the command line,
Greenstone.bmp 26 Kb \WINNT\
Bliss.bmp 1,407 Kb \WINNT\Web\Wallpaper
Both successfully loaded (I printed image width/height).

...so, from that, I can say that there is probably something
wrong on your side, with
- the code,
- the JVM, or
- the BMP's.

Andrew T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top