Create REST Web Service to send files from PHP

0

I am currently working with RestFull web services, so far I have learned to send and receive basic information, (texts, objects, etc.) However, I am required to create a Rest service that receives the name of a file as a parameter to return the file to the user, as a first approximation try to read the file, code it in base 64 and send it as a string and it actually works, however, converting a file in base64 increases the size of the request considerably and therefore Response times are not acceptable, so for files over 2M or 3M I have to find another solution to attach the file in the response of my web service.

Can anyone give me a light on how to approach this point?

    
asked by Avhelsing 28.06.2018 в 19:06
source

0 answers