Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] REST API RAW POST

$
0
0
Hi Guys,

I'm trying to send a PDF to a target php file with the REST API.
By creating a RAW post text I can send paramaters and the file in one request to the target page.

The PDF is on ANSI encoding but when I open the PDF received on the target php page it's UTF-8.
There for the PDF is not working anymore and I can get this to work.
This is the plaintext that I send trough the rest api:

-----------------------------261062025026036
Content-Disposition: form-data; name='printadres'

false
-----------------------------261062025026036
Content-Disposition: form-data; name='my_file'; filename='20161540.PDF'
Content-Type: application/pdf

 binarydatatotext(file)
-----------------------------261062025026036--

Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>