M
Marcelo
Dear programmers,
I am having the following message whenever I do a massive retrieve of
images.
The program has some threads that saves an images from the internet to
my hard-disk, however, because I don't know the size of these images, I
have put
int MAX_IMAGE_SIZE = 5000000;
for the buffer.
And obviously I get the error-message
Exception in thread "Thread-17" java.lang.OutOfMemoryError: Java heap space
How can i know the Size of my image before downloading it ? Is it
possible to give a maximum size of 5Mpix without having this problem?
thank you for your advises,
Marcelo
I am having the following message whenever I do a massive retrieve of
images.
The program has some threads that saves an images from the internet to
my hard-disk, however, because I don't know the size of these images, I
have put
int MAX_IMAGE_SIZE = 5000000;
for the buffer.
And obviously I get the error-message
Exception in thread "Thread-17" java.lang.OutOfMemoryError: Java heap space
How can i know the Size of my image before downloading it ? Is it
possible to give a maximum size of 5Mpix without having this problem?
thank you for your advises,
Marcelo