Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Sybase DBD and Perl - Retrieving images from the DB and saving to disk

by nikosv (Deacon)
on Oct 16, 2015 at 08:56 UTC ( [id://1145075]=note: print w/replies, xml ) Need Help??


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 :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1145075]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (1)
As of 2024-04-25 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found