Hi,
I have a table which has word or pdf documents stored as Blobs. The table also has a field which identifies the content type i.e. (application/ms-word, application/octet-stream, text/plain) and another field which identifies the orginal filename.
table as follows:
Code:
CREATE TABLE `tbl_myfiles` (
`FileID` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`FileName` VARCHAR(50) NULL DEFAULT NULL,
`FileSize` MEDIUMINT(8) UNSIGNED NULL DEFAULT NULL,
`ContentType` VARCHAR(50) NULL DEFAULT NULL,
`BinaryData` MEDIUMBLOB NULL,
PRIMARY KEY (`FileID`)
)
Is there a way in Mysql to convert this data back to its original form and save it to a folder?