Hello, 

I am working on a flex project for my job, and we have seem to of hit a road 
block.

we have two parts to our project, one part which is written in AIR that is used 
to create case files, which is really just a zip with a XML file and 'assets', 
as in pictures, text, audio, video, hyperlinks, and whatever else we may want 
to use in the future

The way the zip library we are using works is that we get the individual file 
information out of the zip  by calling a function which returns a ByteArray 
representation of the data

However, our problem is using the limitations of the Flash/Flex Web-browser 
plugin (not air) which does not have any of the file functions, so we cannot 
save the files we extract from the zip to the hard drive, (which we do with the 
AIR portion of the project),  we are forced to keep them as ByteArrays. 

But, we are having problems with a part of our program which previews these 
assets, namely Audio and Video files in the browser, it appears that the 
VideoDisplay and Sound classes do not accept ByteArrays, but only streams or a 
URL....but we cannot give it a URL because we just don't have one, the files 
are in memory as a ByteArray object.

Is there any cool way to convert a ByteArray into a Sound /VideoDisplay that 
anyone knows of? If not, we are going to have to resort to using an external 
php script to do the work of unzipping files on the server, which defeats the 
purpose of having it all in one file anyway. 

~Mark

Reply via email to