Convert frame to JPEG

We are trying to convert Flash frame to JPEG without using Flex SDK or other Adobe tools. Right now, we have a flash file that feeds binary data to a .cfm page that uses the following code to change the headers:

<cfset var = GetHttpRequestData()>

<cfcontent type="image/jpeg">
<cfheader name="Content-Disposition" value="attachment; filename=#url.name#">
<cfoutput>#var.content#</cfoutput>

      

This code produces some strange results. Basically, it is displayed as an image and I can "Right Click -> Set as Desktop Background", but I cannot save the image in any other way as it just saves the content of the HTML source. So the questions:

1) Is what I am trying to do even possible? 2) If so, any suggestions?

Thanks guys.

+2


a source to share


1 answer


I'm going to answer my own question, thanks to tj_d_ and ejholmgren_ from the ColdFusion DALNet channel:

<cfset var = GetHttpRequestData() />

<cfimage action="writetobrowser" source="#var.content#" format="png">

      



done and done.

+3


a source







All Articles