I usually write files in java by creating a byte[], and then using a bytearrayoutputstream to create the file.
I don't follow this bit. I usually write to a ByteArrayOutputStream to capture what I'm writing into a byte array for some later use. Can you show a code snippet of what you're doing now?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
As an alternative, you can read and write a smaller chunk at a time. Set your buffer size to 1 or whatever memory will hold.
If you have to work on the data rather than just copy it, things get harder. Is that the case? [ October 06, 2006: Message edited by: Stan James ]
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
There’s no place like 127.0.0.1. But I'll always remember this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!