Convert Byte Array into HTML Image with Rails?
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开发者_如何学JAVA would I do that in Rails?
Many thanks, M
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.
精彩评论