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

Re: Perl to upload blob file to Mysql

by cfreak (Chaplain)
on Aug 29, 2005 at 17:52 UTC ( [id://487481]=note: print w/replies, xml ) Need Help??


in reply to Perl to upload blob file to Mysql

Not without an error message. You have RaiseError=>1 as an option. What does it say?

If nothing, the most likely thing is you aren't getting anything in $filedata, have you checked it?. You're not checking to see if the call to open() fails either, that's another likely culprit.

Replies are listed 'Best First'.
Re^2: Perl to upload blob file to Mysql
by xspikx (Acolyte) on Aug 29, 2005 at 18:05 UTC
    I did print out the content of $filedata and it contains the binary code. same as I would cat the file itself. Does not error out at all.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://487481]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found