i need to buffer big files like those of 10-15 mb. What should i use to prevent OutOfMemoryErrors? InputStream, ByteArrayInputStream or DataInputStream?
Also, is the difference between memory consumed by an instance of InputStream and a ByteArrayInputStream carrying the same buffer data, too large?
well, its gonna run on a mobile device, but i just posted this here since very less no. of ppl visit the j2me forum.