CFHTTP Image posting oddity

I’m trying to hook into VectorMagic’s API for some image conversions. Below is my code:


<cfset l.devKey = 'xxxxxx'>  
<cfset l.devId = xx>

<cffile action="readbinary" file="[MY SERVER LOCATION]logo.jpg" variable="myBinaryFile">
<cfset md5 = createObject("component","components.Crypto").hashBinary(myBinaryFile)>
<cfoutput>#md5#</cfoutput><br />


<cfhttp url="http://vectormagic.com/api2/#l.devId#/#l.devKey#/create/" result="myObj" method="post" multipart="yes" charset="utf-8">
	<cfhttpparam type="url" name="start_job" value="vectorize" />
    <cfhttpparam type="url" name="image_checksum" value="#md5#" />
    <cfhttpparam type="file" name="image" file="[MY SERVER LOCATION]logo.jpg" mimetype="image/jpeg" />
</cfhttp>

<cfdump var="#myObj#">    

The code above generates a checksum error. However, when I verify the checksum on my computer is comes out as a match and the VectorMagic suppport team also verified it as a match but the API calculates a different checksum.

BUT, when I manually create a form, select the file from my local machine (same file on the server) and post to the url in the cfhttp tag, it works like a charm.

I’m stumped on this one…any thoughts / suggestions.

Thanks a bunch!

Chris

The issue was with vector magic, they had not yet activated our account. The checksum they were showing as correct was for their stock images.