var myFile:File = new File("./test.jpg");
var myFileStream1:FileStream = new FileStream();
myFileStream1.open(myFile, FileMode.READ);
var byte:ByteArray = new ByteArray();
myFileStream1.readBytes(byte,0,byte.bytesAvailable);
myFileStream1.close();
now how can i add byte variable to the canvas ? for example var canvas:Canvas = new Canvas(); canvas.addChild(byte); is it possible to add ByteArray to the canvas?