Suoritettu

PDF File returned from JSON response as Binary Data

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.

Taidot: PHP, JavaScript, JSON, HTML5

Tietoa asiakkaasta:
( 5 arvostelua ) Accra, Ghana

Projektin tunnus: #34365463

Myönnetty käyttäjälle:

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 1 päivässä
(5 Arvostelua)
2.6

7 freelanceria on tarjonnut keskimäärin $23 tähän työhön

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 1 päivässä
(364 arvostelua)
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 Lisää

$10 USD 5 päivässä
(160 arvostelua)
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 1 päivässä
(10 arvostelua)
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 7 päivässä
(2 arvostelua)
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 1 päivässä
(1 arvostelu)
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 Lisää

$20 USD 1 päivässä
(0 arvostelua)
0.0