Excellent suggestions, both of you. I completely forgot about binmode-ing STDOUT. I also hardcoded $file to point to a JPEG sitting on the same machine - no luck though :( Same type of thing happens. Image appears on the client browser, but only about the top 1/3 or so of it.