in reply to corruption of jpg written and retrieved from sqlite

open (my $MYFILE,'<', $my_picture_file) or die "Cannot open file....$ +!"; binmode $MYFILE;
https://perldoc.perl.org/functions/binmode.html On some systems (in general, DOS- and Windows-based systems) binmode is necessary when you're not working with a text file.

Replies are listed 'Best First'.
Re^2: corruption of jpg written and retrieved from sqlite
by Anonymous Monk on May 15, 2017 at 15:48 UTC
    exactly right!! thanks to the IMMEDIATE responses!