I must read a blob (a TIFF image) from an Oracle database and display it in a browser as a PDF. I write the blob to a TIFF file, then use <cfdocument> to display the TIFF image as a PDF. The second step is very slow, and on the largest blobs there is not enough memory:
java.lang.OutOfMemoryError: Java heap space.
Converting TIFF to PDF in ImageMagick from ColdFusion is even slower.
Is there a better way to do this in ColdFusion?
Here is my code:
<cfimage action="write" source="#queryName.theTIFFblob#" destination="newfile.tif" >
<cfdocument format="pdf" >