It seems to me that this is a really hard problem, but I guess all problems are hard if you haven't figured out an answer.
I am using the DBI and DBD:Oracle modules, and I know I can load BLOBs into the database because the documentation says it's supported. However, the BLOBs I wish to load are jpg's and/or pdf's, and I can't figure out a way to get the data to the DBI without actually reading the file into the Perl program.
I would be fine with that, except that (I guess because of the non-ASCII format) Perl won't read in the entire file. I think it finds what look like EOF characters in the file when it's reading it and stops right in the middle (or sooner).
So, can anyone tell me
1. If there is a way to handle these formats so I can get them into an SQL insert statement within my script, or
2. If there is a way to ?parse? the raw data from a non-ASCII file so it can be entirely read into my program?
Thanks in Advance for solutions, advice, pointers, or general two cents' worth!!
bardley Brad Gunsalus
Cymtec Systems, Inc.
bgunsalus@cymtec.com
I am using the DBI and DBD:Oracle modules, and I know I can load BLOBs into the database because the documentation says it's supported. However, the BLOBs I wish to load are jpg's and/or pdf's, and I can't figure out a way to get the data to the DBI without actually reading the file into the Perl program.
I would be fine with that, except that (I guess because of the non-ASCII format) Perl won't read in the entire file. I think it finds what look like EOF characters in the file when it's reading it and stops right in the middle (or sooner).
So, can anyone tell me
1. If there is a way to handle these formats so I can get them into an SQL insert statement within my script, or
2. If there is a way to ?parse? the raw data from a non-ASCII file so it can be entirely read into my program?
Thanks in Advance for solutions, advice, pointers, or general two cents' worth!!
bardley Brad Gunsalus
Cymtec Systems, Inc.
bgunsalus@cymtec.com