How to open a file and get its contents as ByteArray in AS3. I saw examples using the FileStream and File classes from flex.filesystem, but the document only talks about this for AIR.
Thanks,
Nava
You can try URLLoader with content for binary, or use a URLStream . What do you need to download?
You can use the FileReference object to search for a file, and then access the raw bytes through the "data" property on the FileReference when a "full" event is dispatched.
Flex .
The most commonly used workaround is the user selecting a file, sending it to your server, and downloading the file from your server.
For storage and reading, access to local storage is available (using SharedObject).
Hth,
Koen
A new feature in Flash 10. The last time you cannot read the file directly. But now you can. http://www.mikechambers.com/blog/2008/08/20/reading-and-writing-local-files-in-flash-player-10/
Source: https://habr.com/ru/post/1716560/More articles:image shift search - c ++C #, when the site (ISite) is not null in the control life cycle? - c #video with minimal decoding time - armHow to change NetBeans encoding? - character-encodingCan I add data to the body of an HTTP request using cURL in PHP? - httpFirefox Extension Development - Data Warehouse - Are Firefox Settings A Good Place? - firefox-addonASP.NET overrides default returnto parameter when redirecting when user is not authenticated - asp.netConvert Unmanaged C ++ Code to C # - c ++ASP.NET Multilingual Strategy Tips - asp.netHibernate callbacks - javaAll Articles