Adobe Air: Read and Write MP3 or JPG from local directory and switch bytes

Posted by Max on Stack Overflow See other posts from Stack Overflow or by Max
Published on 2010-06-12T09:11:47Z Indexed on 2010/06/12 9:22 UTC
Read the original article Hit count: 258

Filed under:
|
|

I would like to make my local jpg and mp3 files kind of unreadable (without encoding) by just putting the first 100 bytes from the beginning of the file to the end and then saving the file with a .dat extension. I know I have to use the byte array but can't get it work.

I would also need then a small function to read that file and put the 100bytes back to the front so that I can play/display the file.

It would be great if you could post the whole function because I am quite new to Air so that I fully understand.

Thank You!!!!

© Stack Overflow or respective owner

Related posts about air

Related posts about adobe