I would like to load an image (not uploading from the client) and store
this image as an instance variable of my model ?
I do that because I want to render it with
send_data(Person.defaultImage, :type => “image/jpeg”, :disposition
This is the code I did in my model, that not works ;-(, no error, but
the image is not render wth the send_data
file.each_byte do |abyte|
@waitingImage << abyte