I have a website in which I let users upload images. I convert these images to data URLs through HTML5 and store them as text fields in a database: http://en.wikipedia.org/wiki/Data_URI_scheme
I figured this would reduce the time for page load since I need to make fewer HTTP requests even though the main HTML page would be much longer.
I'm suspicious though that these images stored in URLs take up more space in the database than their static counterparts on disk. I noticed that a data URL for image had 250K characters (so I assume stored in 250KB), but when I right-clicked and saved the same image on disk, the image was only 180K.
Do data URLs significantly inflate the memory required to store an image?