Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Insert BLOB into DB without using system memory, but using filehandle.

by songahji (Friar)
on Sep 18, 2009 at 14:46 UTC ( #796131=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub _insert_to_db {
      my $self = shift;
    ...
             croak "Failed to insert $sql: \n $@";
       }
    }
    
  2. or download this
         open(local *IN, '<', "file.pdf");
         $self->{'data'} = do {local $/, <IN>};
         close IN;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://796131]
Approved by ikegami
Front-paged by broomduster
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2020-08-13 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (74 votes). Check out past polls.

    Notices?