search for: waitingimage

Displaying 1 result from an estimated 1 matches for "waitingimage".

2006 Aug 14
0
loading an image to instance variable of AR
...odel ? I do that because I want to render it with send_data(Person.defaultImage, :type => "image/jpeg", :disposition =>"inline") This is the code I did in my model, that not works ;-(, no error, but the image is not render wth the send_data def defaultImage @waitingImage=[] file=File.open("#{RAILS_ROOT}/public/images/picture.jpg", "r") file.each_byte do |abyte| @waitingImage << abyte end return @waitingImage end thanks arnaud