« Return to Thread: no way to read image data from database

Re: no way to read image data from database

by Adam Akhtar-2 :: Rate this Message:

Reply to Author | View in Thread


Marnen Laibow-Koser wrote:

> daociyiyou wrote:
>> Attachment_fu works fine in :file_system mode, but
>> not in :db_file mode.
> [...]
>
> Then don't use :db_file mode. :)  Images don't belong in the DB.
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> marnen@...

I was feeling masochistic about a year and a half ago, and had it
working in :db_file mode (the challenge of one of those "proof is left
as an exercise for the reader"), but the performance was so abysmal it
was quickly evident that it was not a viable, long-term solution. It can
be done, but I'm not even sure I have that 'tester' rails app on my
machine any longer.

Just store your images on the file system, and get on with the fun
things...
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: no way to read image data from database