Reputation: 353
Well in a particular website when I upload the image and then try to get the link of the image I get this:
data:image/svg+xml;base64,thebase64encodeOfMyImageCode
I have seen this in many of the website. After decoding the base64
code I find that its the code of my image file (guessed out by uploading svg
image file ) . Can any one tell me how this work and where the image is actually being stored . There is no direct URL like website.com/image.svg
etc. This is confusing me.
Upvotes: 0
Views: 45
Reputation: 3202
When base64 encoding is used for the image - you simply cannot know where the actual image is stored, if it is available at all. It might not be stored on a file at all, but only on a database, or might be stored outside the domain. On some occasions, such images are generated in real time and not stored on a disk at all.
Upvotes: 1