PDF File returned from JSON response as Binary Data

Completed Posted 1 year ago Paid on delivery
Completed Paid on delivery

I am developing a whatsapp chatbot and I receive PDF files from customers submitted to the chatbot.

I am able to receive the file by making a GET call to url provided to me by facebook as seen below:

curl -X GET 'URL' \

-H 'Authorization: Bearer ACCESS_TOKEN' > media_file

Issue is, facebook returns response as binary data of media saved in media_file with response headers containing a content-type header to indicate the mime type of returned data.

I am not able to handle this response in php, and I will like to display file in browser or download to user PC after getting the data returned.

Task is to basically allow returned data to either show in web browser or allow user to download to PC.

I will provide URL and Access Token.

PHP JavaScript JSON HTML5

Project ID: #34365463

About the project

7 proposals Remote project Active 1 year ago

Awarded to:

softgreen

Hi the binary data can be converted to base64 and it can be triggered to pdf header so users can download it. I can write this function in your existing script. Thanks.

$20 USD in 1 day
(5 Reviews)
2.6

7 freelancers are bidding on average $23 for this job

nixtech

Hello Sir I can retrieve the file and make them downloadable. I am willing to start right away. Please check my profile for work and experience. Regards Hardeep.

$50 USD in 1 day
(364 Reviews)
7.1
navjootkaur

Hi, Thanks for giving me a chance to bid on your project. As per your requirements, I can design and develop your website on the required theme you want. About Me: • I have more than 5 yrs of experience in PHP, SQL, R More

$10 USD in 5 days
(160 Reviews)
6.5
BraveBoyMJHNahid

Hello I read your description and I can do it in 1 hour. It is really no problem for me. Looking forward message from you. Thanks

$25 USD in 1 day
(10 Reviews)
3.2
rispx

I can easily do this. Let me inspect the details. We just need to set correct headers for php. After that it will opened in browser. If browser is old and do not support pdf view it will download.

$20 USD in 7 days
(2 Reviews)
2.4
geethasekar1995

I have a experience in asp.net, MVC, web API, c#, SQL, entity framework,linq, razor view (Cshtl), html, bootstrap,Angular JS, Jquery, Json,XML, reports (PDF,xls, crystal, rdlc,ssrs).

$15 USD in 1 day
(1 Review)
1.6
pathanaffan0786

Hello sir so first thing that make me best for this project is it's my type of project because I do so many works on content writing , artical writing and I'm very hard working as well as smart working person. I want More

$20 USD in 1 day
(0 Reviews)
0.0