Copy link to clipboard
I'm using ColdFusion 2018, Oracle 12c, and IIS 10. I setup a page to upload Microsoft Word files with a DOCX file extension into a BLOB field into the database. When I use the website to open the file all I see is the text. The problem is I do not see any images that were pasted into the file before it was uploaded.
In IIS there is a MIME Type of DOCX.
The upload query is similar to:
INSERT INTO my_db_table (
<CfQueryParam CfSqlType="cf_sql_varchar" value="#File_Name_Value#">,
<CfQueryParam CfSqlType="cf_sql_blob" value="#File_Content_Value#">,
The query to get the file from the database is similar to:
<cfquery datasource="my_dsn" name="my_query">
SELECT File_Name, File_Content
WHERE File_Id = "#File_Id_Value#"
Have something to add?