j2me out of memory

I

ismael

Hi all

I have a out of memory problem with an application in j2me.

I want to stream a video that it will be inside the JAR file. In NetBeans5.5
(and mobility pack 5.5) i make the code for stream the video and i have
this two simple lines:

1 InputStream in = null;
2 in = this.getClass().getResourceAsStream(file);

When i try to execute the application and the execution arrive to line 2 an
OutOfMemoryError is throwed to me. The file size is 700 KB. ¿is the file
size my problem? ¿is there another problem? ¿What is the max size for
files?
Im using MIDP-2.0 and CLDC-1.1

I dont know how solve this problem. ¿Anyone can help me?

Thanks all

Best Regards
 

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,968
Messages
2,570,150
Members
46,696
Latest member
BarbraOLog

Latest Threads

Top