Can't you just do a ns_returnfile?

M

On Apr 19, 2007, at 2:27 PM, Rusty Brooks wrote:

Excellent. I'd be happy even if it was just a flag or something like ns_return -binary 200 image/jpeg $mydata

John pointed out to me that you can fake it OK by using ns_write and doing all the headers and what not yourself.

Rusty

Dossy Shiobara wrote:
On 2007.04.19, Rusty Brooks <[EMAIL PROTECTED]> wrote:

I don't believe you can use ns_return with binary data.

By the way, are there any plans to change that? Or make a ns_return_binary or something? I have a lot of code that writes to a file and then does ns_returnfile


I'm going to work on making ns_return handle binary data correctly for
4.5.  If it's not too much hassle, I'll backport to 4.0 too.

I'd consider this lack of proper binary handling a bug, FYI.

-- Dossy




--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to