Stream binary data to a website
Posted: Fri Aug 07, 2009 2:52 pm
by Stephen >> Tue, 7 Dec 2004 3:44:25 GMT
Hi,
Is there a way yet to be able to set the content type of a web session reply? I am wanting to return a binary file that is stored within our database without having to write the file to the webserver, then link to that file to download it.
The same issue was raised over a year ago in the Tech_General newsgroup, so I was wondering if there has been a solution found yet.
Everything I have seen about it makes it look conceptually very simple. Just set the content type in the http header, then return the binary. So is there a way to manipulate the headers within Jade before sending a response?
Thanks
Stephen
Hi,
Is there a way yet to be able to set the content type of a web session reply? I am wanting to return a binary file that is stored within our database without having to write the file to the webserver, then link to that file to download it.
The same issue was raised over a year ago in the Tech_General newsgroup, so I was wondering if there has been a solution found yet.
Everything I have seen about it makes it look conceptually very simple. Just set the content type in the http header, then return the binary. So is there a way to manipulate the headers within Jade before sending a response?
Thanks
Stephen