how to show the image from the database

how to show the image from the database

i think send_data is what you're looking for: http://api.rubyonrails.org/classes/ActionController/Streaming.html#M000229