in reply to Sybase DBD and Perl - Retrieving images from the DB and saving to disk

"syb_ct_get_data() returns the number of bytes that were fetched" so that is what gets assigned to $image. the image's actual data will be in \$pdf_report also change
while (my @row = $sth->fetchrow_array)
to
while($row = $sth->fetchrow_arrayref) {

Replies are listed 'Best First'.
Re^2: Sybase DBD and Perl - Retrieving images from the DB and saving to disk
by chickenbeef (Initiate) on Oct 16, 2015 at 09:17 UTC
    Thanks, I know that fetchrow_arrayref is sometimes faster but I'll only be retrieving 12 records from the database. Changing to fetchrow_arrayref also sends the program into an infinite loop.

    Thanks for the info on \$pdf_report , now I feel as if I'm getting somewhere :)