Search code examples
perlblobcatalystdbix-class

Uploading BLOB to database using Catalyst::Request::Upload


Among the methods with which the Catalyst upload object is blessed, none of them allows to retrieve the actual "blob" to store it directly as is in the database.

http://search.cpan.org/~jjnapiork/Catalyst-Runtime-5.90114/lib/Catalyst/Request/Upload.pm

Is there any way to workaround this or should I just change the schema to store paths?


Solution

  • What about the 'slurp' method? It defaults to the :raw layer.