swf format verification?

A

akonsu

hello, can someone recommend a good library to verify whether a file
is in swf format (and ideally flv as well)? i need it to enable file
uploading on to my web site.

thanks
konstantin
 
B

Bjoern Schliessmann

akonsu said:
hello, can someone recommend a good library to verify whether a
file is in swf format (and ideally flv as well)? i need it to
enable file uploading on to my web site.

Look how GNU "file" does it:

#------------------------------------------------------------------------------
# flash: file(1) magic for Macromedia Flash file format
#
# See
#
# http://www.macromedia.com/software/flash/open/
#
0 string FWS Macromedia Flash data,
3 byte x version %d
0 string CWS Macromedia Flash data (compressed),
3 byte x version %d
# From: Cal Peake <[email protected]>
0 string FLV Macromedia Flash Video

#
# From Dave Wilson
0 string AGD4\xbe\xb8\xbb\xcb\x00 Macromedia Freehand 9 Document

Regards,


Björn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top