From: hschottm@... (Helmut Schottmueller) Date: 2003-02-13T07:46:07+09:00 Subject: problems sending binary data in cgi Hi there, I'm trying to send binary data (e.g. gif file) to a web browser using the following code: f = File.open(gif_filename, "rb") content = f.read(filesize) f.close print "Content-type: image/gif\n\n" print content I'm using ruby for windows. I'm getting problems because every 0x0a will be converted to 0x0d 0x0a. Must I use another method to print binary data for output? I've found nothing in the ruby documentation. Cheers, Helmut