chickenbeef has asked for the wisdom of the Perl Monks concerning the following question:
my $sth = $dbp->prepare("SELECT pdf_report FROM report_table WHERE rep +ort_name = ($report_name_here)"); $sth->{syb_binary_images} = 1; $sth->{syb_no_bind_blob} = 1; $sth->execute(); while (my @row = $sth->fetchrow_array) { my $image = $sth->syb_ct_get_data(1, \$pdf_report, 0); #This just prints out the size of the file, how can I actually retr +ieve the file and write it to disk? print "$image\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
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 | |
by chickenbeef (Initiate) on Oct 16, 2015 at 09:17 UTC | |
|
Re: Sybase DBD and Perl - Retrieving images from the DB and saving to disk
by Discipulus (Canon) on Oct 16, 2015 at 09:04 UTC | |
|
Re: Sybase DBD and Perl - Retrieving images from the DB and saving to disk
by Anonymous Monk on Oct 16, 2015 at 12:40 UTC | |
|
Re: Sybase DBD and Perl - Retrieving images from the DB and saving to disk
by Anonymous Monk on Oct 16, 2015 at 09:30 UTC | |
by Corion (Patriarch) on Oct 16, 2015 at 10:01 UTC | |
by Anonymous Monk on Oct 16, 2015 at 09:59 UTC |