An external API send me a PDF submitting via http post. Pdf data (binary) is sent in the body. To catch this pdf and save it to disk I’ve tried to use this simple statement:
<cffile action="write" output="#getHTTPRequestData().content#" file="/mypath/myfilename.pdf">
The resulting pdf is similar to the original but it’s not the same, it’s corrupted.
It seems that GetHttprequestData().content changes the content.
Editing hex files I noticed that GetHttprequestData().content, larger in size, is filled with EF BD EF hex.
It’s a GetHttprequestData().content problem or I missing something?
How can I get simply the binary data?
Thanks in advance
I’M using Lucee 188.8.131.52 on Debian 10