For the first part of yoru question, when you say it won't display, it could be because of the data type that you stored the swf as in your database is not appropriate. You should be using a data type like BLOB. That is just a suggestion as I normally do not store graphics or such in my db. For the second part of your question, if you have a .swf called test.swf and it is located at:
/home/lessterm/movies/test.swf
you would want to store either the entire path or part of the path (e.g. /movies/test.swf if the /home/lesstern never changes) in the database. For that, using varchar as your data type for the column would suffice. Later on, if you want to use your .swf for something, you need to query for it:
SELECT * FROM table_name WHERE id = '20';
That will retrieve the path of the .swf which you could assign to a variable or whatever you want to do.