Hi all,
I'm working on an app which allows a user to upload a PDF file which I
then convert to images using <cfpdf />
The conversion process can run a while, and I'd like to return a
response to the user (Flex app) before the conversion is complete.
Here's what I have so far:
<!--- construct response to Flex --->
<cfset result = "<result><status>OK</status></result>">
<!--- return response --->
<cfcontent type="text/xml" reset="yes"><cfoutput>#Trim(toString
(result))#</cfoutput>
<!--- kick off PDF conversion --->
<cfinvoke component="api.v1.private.pdf" method="convert">
<cfinvokeargument name="filename" value="#filename#">
</cfinvoke>
The response is in this case not received by the Flex client until the
PDF conversion is complete, resulting in a delay on the client before
the upload is marked as completed.
How could I change this so that the response is sent first, and then
the conversion kicked into life? The Flex client can later check the
conversion status itself by polling the database.
Regards,
Stefan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327426
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4