I want to send a file to the Browser via the REST Interface.
Can you suggest the most efficient way to do it, Keeping in mind the following?
- Not much traffic.
- I am fetching the file from
HBasewhich means when I fetch it from HBase I get it inByte Array. - The files are not in any folder in the server. The files can only be fetched from the
HBasetable.
The Front end is PHP and I do not know PHP.
In the
RESTapi you can just pass thebyte arraytoResponseand it takes care of itself.Using the following code –