How to Read Multipart Response in ColdFusion
问题 I am doing a CFHTTP post to a web service that is returning two parts (multipart), a XML and PDF. I am looking to get only the PDF. My cfhttp.filecontent is a java.io.ByteArrayOutputStream type. When I do a toString() I get the following Part 1 Content-Type: application/xop+xml; type="text/xml"; charset=utf-8 Content-Transfer-Encoding: 8bit Part 2 Content-Type: application/pdf Content-Transfer-Encoding: binary I get the response in cfhttp.fileContent and the data looks like the following -