search for: picture_data

Displaying 3 results from an estimated 3 matches for "picture_data".

2006 Nov 23
1
Problem with image caching
Hello, I have a little problem with image caching. I have a Student model which contains, for each student, a picture (picture_data for datas and picture_type for the content-type of the picture). As I want to save brandwidth, I followed the tutorial in http://manuals.rubyonrails.com/read/chapter/62 for caching pictures. If I test, as the tutorial suggests it, with curl, it''s working well. No problems. But in reality,...
2006 Jun 28
2
Streaming from Database
I need to store rather large data in the database using blobs. I''ve been working with Rails and have designed a proof-of-concept setup that works pretty well, except there''s a considerable performance hit with very large files due to the fact that ActiveRecord loads the entire blob into memory before the data can get passed to send_data. I know at least one person is going
2008 Jan 03
1
Mongrel stops to loading the page in browser
...bol %></td> </tr> </table></td> </tr> </table> <br> <% end %> show_picture_of_partner: def show_picture_of_partner partner = Partner.find(params[:id]) send_data(partner.picture_data, :type => partner.picture_content_type, :filename => partner.picture_name, :dispositon => ''inline'') end Can anybody tell me what the problem could be? Or what to do better to get around this problem? Thanks, Chris -- Posted via http://www.ruby-forum.com/.