I'm using a propriatery Java library that saves its data directly into a java.io.File
, but I need be able to read the data so it's directly streamed. Data is binary, some media file.
The java.io.File
is passed as an argument to this library, but I don't know of a way to get a stream out of it. Is there some simple way to do this, except opening the file also for reading and trying to sync read/write operations!?
Prefferably I would like to skip the writing to the file system part since I'm using this from an applet and in this case need extra permissions.