I'm facing a problem when showing base64 data please see below:
When I'm using for debugging:
<%= debug @photo %>
Showing like below image:
And this is correct.
When I'm using for the show:
<%= @photo %>
Showing like below image:
And this is not correct!
What I'm doing wrong?


 
    