views:

49

answers:

1

I have a Byte Array field being returned to me by the database, and in the view, I need to somehow output that as an image. How would I do that in Rails?

Many thanks, M

A: 

You need send this byte by send_data helper.

http://api.rubyonrails.org/classes/ActionController/LogSubscriber.html#method-i-send_data

You need you define another URL who send only this data_byte.

shingara
I'll have to play with this and figure it out. I'll let you know. Thanks!
Mr M
How would I use this in a view?
Mr M
Nevermind. I got it! Thank you very much for the help! :)
Mr M