Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
From the examples of binary data manipulation I have read, this should work without a problem. However, the created files never work. Does anyone have any insight as to what I am missing? Any help would be greatly appreciated. Thankswhile ($record = $sth->fetchrow_arrayref()) { $id = $$record[0]; $data = $$record[1]; $fileName = $$record[3]; my $outFile = "$filesDir$fileName"; open OUTF, ">$outFile" or print "Can't open '$outFile' for wri +ting\n<BR>"; binmode OUTF; print OUTF $data; close OUTF; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extracting binary data from mssql
by fmerges (Chaplain) on Jul 25, 2007 at 21:45 UTC | |
|
Re: Extracting binary data from mssql
by runrig (Abbot) on Jul 25, 2007 at 21:48 UTC | |
by bart (Canon) on Jul 25, 2007 at 22:05 UTC | |
by runrig (Abbot) on Jul 25, 2007 at 22:24 UTC | |
by Anonymous Monk on Jul 26, 2007 at 13:25 UTC |