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