|
You can save a file (binary data) in a db with a blob/clob field.
Before doing so, you need to encode them, to be sure it won't be any special character that will break the sql query.
Then, to get it back, it's just a select on decode of the value, and voilà, you have the file back.
Depending of your db, you will need anoter language, as PHP, pl/sql or asp to do the encoding/decoding and serving the datas to a web browser.
Just keep in mind that the encoding will make your file size grows by about 30%, and that some DB have size limits on their binary fields.
|