I have been trying to retrieve flash files from a database, but all it returns is the binary data. I was wondering if there was any good tutorials showing how to do these kind of stuff? Or if anyone of you have done such things before.
Are you storing the Flash files in the database using blobs (binary large objects)? That would explain why the come back as binary.
yeah, is there a different way to store it? And convert it from binary?
Are you just echoing it to the screen or something? If so, you'll need to set the proper MIME type first.
Yes I'm echoing out to the screen. Could you show me an example how to do it?
try something along the lines of:
<?php header("Content-type: application/x-shockwave-flash"); // Echo the flash here ?>
tried that but still not result. Is there any other file I have to upload other then the .swf file? I have uploaded the .swf file in the database and echoed the result like you have shown below.
how about you post some code for us to look at?