I’m looking for Rails plugin that can store image file to database.
I’ve just try “paperclip” and “carrierwave”.
They are good plugin.
But they normaly can store to local file system or Amazon S3, fog.
I want to store image file to database.
Please tell me which gem can accomplish it.
thank you.
Here is an example how to you can store an image in binary field (
raw_file)form:
controller:
Use RMagick or mini_magick to convert image from blob.