Using frameworks like Django, the file is saved onto the harddrive, and a link pointing to the file is rather stored in the Database, which is fine...
For further actions, you may consider blocking this person and/or reporting abuse
I feel like you could lose a few benefits. Here are some things that come to mind:
I might not have your full context or could be missing something. Would love others' input to validate or invalidate my thoughts on the issue.
Thanks Ben.
True, didn't think of that. Scaling with embedded base64 could be catastrophic.
Yes, send the images over the wire along with the HTML.
Noted.
Great points there, something for me to ponder over. Thanks.
Ben pretty much nailed it, in can you are wondering how much space it would take for an image to be saved in db, just upload some small image on this tool codebeautify.net/base64/image-to-b... and count the characters :)
Is referential integrity between images and other parts of your data model important? If so, you're probably alright but remember to store and index metadata to make searching the table efficient if you need to do that for any reason. You're not going to power something the scale of Google Image Search out of that but you almost certainly aren't trying to do that anyway.
If you don't need referential integrity or if you have a lot of image data coming, then you might be better off storing them on a distributed filesystem like Mongo's GridFS, or in someone's cloud.
Of course, but from Ben's points below, I imagine even a slight growth in traffic could topple the system with embedded images.
Yep. Thanks.
I think caching might be the biggest issue. Normal images from CDNs are cached and the browser, but I dont think the base64 strings are.