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 doing a plain :

f = open (..., 'rb')
d = f.read(2048)
while d:
  if not d: break
  print d
  d = f.read(2048)
f.close()

Any hints?

Best regards,
Thomas

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to