I haven't played with file uploads in awhile, but it seems to me that the easiest way would be to upload the binary as a file, then read the file and store it into the BLOB column, deleting the file when done. Are you actually collecting the binary data off the form, as an INPUT item, or will the file upload method suffice?
HTH, Dave On May 29, Vinnie Lima scribed: > Hi, > > First post to the group so please take it easy on me =) > > I need to be able to allow a user (through the use of forms) to upload a > binary into a mysql table. I have the table somewhat defined with "BLOB" > column type and all. > > My question is if anyone has any samples of code on how to properly handle a > POST form submition that contains a binary file. Then how to insert this > data into Mysql through perl/DBI module. > > I have searched the archives as well as various other sources (including > perldocs.org) with not much of a luck... > > Thanks, > Vinnie > >
