in reply to How to manage post binary upload with mysql blob fields

Try reading the file, see CGI#PROCESSING_A_FILE_UPLOAD_FIELD for example
  • Comment on Re: How to manage post binary upload with mysql blob fields

Replies are listed 'Best First'.
Re^2: How to manage post binary upload with mysql blob fields
by miggel15 (Initiate) on Feb 15, 2011 at 09:11 UTC
    Hello and thanks for your help. I read it but I know, how to save an uploaded file. The problem is, that I don't know how to save the uploaded file into a database blob field. Any hints?
      Try reading to $file in blocks
      my $fh = $q->param('myfile'); binmode $fh; my $block; my $file; while ( read($fh,$block,1024) ){ $file .= $block; } insertRessource( $name, $entryid, $file, $mime );
      poj