Re: Serving binary data from a cgi-script

2005-05-11 Thread Fuzzyman
Yeah... I once spent ages going round in circles trying to track that down. A happy way to spend an evening... Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: Serving binary data from a cgi-script

2005-05-11 Thread Roland Heiber
Thomas W wrote: > print d Hi, use sys.stdout.write instead, print is adding linebreaks ... HtH, Roland -- http://mail.python.org/mailman/listinfo/python-list

Serving binary data from a cgi-script

2005-05-11 Thread Thomas W
Hi, I'm having some problems serving binary data in a simple CGI-script. I'm setting content-type ( "application/octet-stream" ), content-length and Content-disposition and I think these are correct, but the size of the served file/data is different than the source. The read and write the data I'm