Store binary data

coreinfo

New Member
Hi!

Is there a way to save binary data, such as a PDF downloaded in base64 format, to a element?

A textarea field type breaks and does not save all content to database.

Thanks.

Joomla 2.5.9
Fabrik 3.0.9
 
Not really, no. The only way to upload binary data is with the upload element, which stores the file in the file system. We have considered adding a database adapter to the upload element, but that won't happen any time soon.

It might be possible to use the upload element, and write a PHP submission script which ran onAfterProcess (after the form has been validated, all files upload, and all table updates finished), which copied the uploaded file and inserted it in to a BLOB field in the table, but that would be of limited use, as there would be no way to "do anything" with it - it couldn't be downloaded again, or displayed, or in any way used by Fabrik. So this would only be of use if your requirement to have it in the database is to make it available to some other application.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top