> if you read in a jpg using cffile "read" and then save it
> using cffile, you will get the same munged image
If a "read" returns the same results, that does sound like the binary data is
being treated as text. In a quick test with cfhttp, I had no problems saving
the getHTTPRequestData().content. But that might be because CF automatically
added a content-type: application/octet-stream.
<cfhttp method="Post" url="http:/localhost/dev/captureImg.cfm">
<cfhttpparam type="body"
value="#ImageGetBlob(ImageRead(ExpandPath('/dev/test.jpg')))#">
</cfhttp>
For grins, you might examine the http request data:
getPageContext().getRequest().getInputStream(). Just on the off chance it is
different. But most likely, it will be the same as
getHTTPRequestData().content.
-Leigh
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:327234
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4