Cold fusion 2021 sometimes image breaks while creating pdf file
Recently we moved from cfusion11 to 2021. While generating pdf file sometimes image breaks. Please suggest us solution if anybody face same issue and came out from that.
Recently we moved from cfusion11 to 2021. While generating pdf file sometimes image breaks. Please suggest us solution if anybody face same issue and came out from that.
I think the following description is a clue: "Image we are retrieving through the database which contains in BLOB form".
The process of retrieving the image may be too slow, or even interrupted. Possible reasons for this include slow or interrupted movement of image bytes down the wire or a slow or interrupted database connection.
Suggestion: cache the query that retrieves the blob. You could, for example, cache the query for 1 day as follows:
<!--- Using cachedWithin attribute to cache query for 1 day --->
<cfquery cachedWithin="#createTimeSpan(1,0,0,0)#" name="xxx" datasource="yourDSN">
...
</cfquery>
Now retrieving image from DB and saving into temp folder at server and after that the image fetching into PDF. So this is working fine now.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.