I am using a TinyMCE text editor in a custom CMS and I drag images into the textarea and then align them. They are given a data:image/jpeg;base64 value and they show up perfect in the user area. But what are the risks with doing this? Do these images render in all browsers? I guess there are some SEO issues to take in to account but It seems like it would be a better system having them stored in the DB rather than folders.
What do you think?
IE7 and earlier don’t support
data:URLs at all.IE8 doesn’t support
data:URLs longer than 32 KB. (Are you sensing a trend here?)Base64 encoded images are about 30% larger than if you stored them raw.
If you reuse images in multiple documents, you end up with multiple copies. If you stored them as files, you’d be able to reference the same file in each location.