From: Jaap Date: 2003-12-28T08:21:48+09:00 Subject: Re: forum & binary cgi Gavin Sinclair wrote: > Try this: > > print "Content-type: image/png\n\n" > File.open(image_path, 'rb') do |file| > content = file.read > end # file is auto-closed here > print content Thank you very much. It works if i add STDOUT.binmode Now if i can only get those damn multipart file uploads working... Teun