Answer the question
In order to leave comments, you need to log in
How is the image generated?
Good afternoon.
How is the final image of ice cream generated here after choosing a color?
The image tag looks like this:
<img id="preview_image" class="img-responsive" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAzkAAAJ9CAYAAAAWrL...тут куча символов...==">
Answer the question
In order to leave comments, you need to log in
base64 encoding. Instead of linking to an image, the src attribute is set to the image itself.
You can encode and decode an image at codebeautify.org/base64-to-image-converter
for more information about base 64 and why it is needed, here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question