Help! need to get a binary image from an http request and write to file
First a little background, I'm creating a virtual webdav server in CF that will allow me to create a repository to store comments from an acrobat Shared Review (webdav). I have iis intercepting the webdav verbs and passing them on to my CF template which then responds appropriately using cfheader and cfcontent tags. Everything is working great, except for the custom stamps. The custom stamps don't display properly (i get a stamp with no image inside of it). I'm using GetHttpRequestData() and <cffile action="write"> to write the content of the request to a file. but when i compare the saved file's contents with the contents of the same image saved over true webdav, there are slight differences in some of the characters that should not exist. If i have the template to respond with the file that was saved via true webdav, the image displays properly. So it seems that CF is making some very slight alterations to the http content before or during saving. I've played around with the encoding but that didn't seem to help. I have used a packet monitor to verify that acrobat is sending exactly the same data to both CF and true webdav, but the file saved via CF is altered. Does anyone have any suggestions on what I could try?
