flash - How do you get the files type/extension based on the file content in ActionScript? -


how file type/extension based on file content in actionscript? example have jpg image following file name: niceimage. based on file name, won't know whats files extension me it's important know exact type of image.

you have read in binary data (https://www.google.com/search?q=read+binary+file+in+as3) , parse image header yourself.

there libraries out there (such http://www.greensock.com/loadermax/) can if care loading content scene.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

debian - 500 Error upon login into Plesk Admin - auth.php3? -