liuxianwei / mp4parser

Automatically exported from code.google.com/p/mp4parser
0 stars 0 forks source link

Output IsoFile to byte array #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In every example, an IsoFile is put into a file on a disk.
How Can I get it into a byte array?

ByteArrayOutputStream seems like a good idea, but it doesn't provide a channel 
that IsoFile.getBoxes() could write into.

Maybe there is a way to somehow cheat the getBoxes() or write a simple 
'para-channel' to write into BAOS?

I am not very deep into Java so I couldn't figure it out myself.

Original issue reported on code.google.com by rakoc...@gmail.com on 5 Sep 2012 at 10:00

GoogleCodeExporter commented 9 years ago
This is a pure java question and no issue in the isoparser. Please do not use 
my ticketing system for Java help. Go to stackoverflow for that. 

http://docs.oracle.com/javase/1.4.2/docs/api/java/nio/channels/Channels.html is 
your friend

Original comment by Sebastian.Annies on 5 Sep 2012 at 2:42