markolus has asked for the wisdom of the Perl Monks concerning the following question:
Greetings
I am looking for some venerable guidance. My task, which has been well thought out(!), is to insert binary data into MySQL using Perl, naturally.
I wish to divide up any binary files into 1MB chunks and insert that into a LONGBLOB field in MySQL.
1) My question(s) is/are which Perl module will help me best to take a binary file and divide it up appropriately... and then at a later specified time re-assemble it back into its original format.
2) Also when inserting the chunks into MySQL what processing do I need to do on the file to make sure it goes in okay, a sort of Perl equivalent of the php addslashes function I suppose?
Thanks if you can spare the time to answer my question.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Inserting binary data into MySQL
by blokhead (Monsignor) on Sep 17, 2003 at 00:29 UTC | |
|
Re: Inserting binary data into MySQL
by Zaxo (Archbishop) on Sep 17, 2003 at 00:38 UTC | |
|
Re: Inserting binary data into MySQL
by gmax (Abbot) on Sep 17, 2003 at 06:25 UTC | |
by markolus (Initiate) on Sep 17, 2003 at 09:08 UTC |