Can Max create a binary file

Omsk411's icon

Hi,

Is there any way to write a binary file with Max? I see there is an object called "filein" which will allow you to read data from a binary, but I can't find an equivalent patch for writing binary data. Thanks for your help!

volker böhm's icon

Omsk411 wrote on Fri, 10 July 2009 16:30Hi,

Is there any way to write a binary file with Max?

Max' Javascript implementaion has a File Object, which makes reading/writing of binary data easy.
or use Java's File class in an mxj.
vb

pdelges's icon

I didn't test with Max5, but file i/o in Max4's JavaScript implementation was very slow. I first wanted to write audio files (with markers metadatas) but it was just too slow to be useable.

I suppose Java is faster, but never tried.

p

Philamp's icon

how do you access the file object? I cannot find it.