From: Paul Battley Date: 2005-04-21T09:36:13+09:00 Subject: Re: Newb CGI Question I just ran up a similar example using a jpeg I had to hand (yes, it really was called 'foo.jpeg'!). require 'cgicroak' CGI.croak do |cgi| print(cgi.header('type' => 'image/jpeg')) print(File.read('foo.jpeg')) end It works, and displays the image, so the code seems all right. Do check things like file permissions, though - it could be that it is failing to read the image from disk. And, of course, check the image itself.