I\'m sending a base64 image to my controller and I\'m saving it as it is. Now I need to display that image. This is what I\'m doing to display but image is not showing up:
You don't need to decode the base64
<img src="data:image/jpeg;base64,..." />
Should work
Using Helper: <%= image_tag "data:image/jpeg;base64,#{@image}" %> Do not forget to put double quotes, because the interpolation using #{}
<%= image_tag "data:image/jpeg;base64,#{@image}" %>