in reply to Insight Into Image::TestJPG Module needed

You're only reading the first "line" of your jpg file. Try
# read data from a file my $jpgData; { local $/; # slurp mode. open(JPEG, "< $file") or die "Can't open $file : $!\n"; binmode JPEG; $jpgData = <JPEG>; close(JPEG); }