Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by songahji (Friar)
on Sep 18, 2009 at 14:46 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-03-29 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found