Is that a good idea to save image data inside database?
I'm currently converting user's uploaded photos to DataURI using base64_encode. And save the result to MySql table with datatype "Longtext".
When I display, I select the value and put inside HTML IMG source like this <img src="<?php echo $photoColumnName; ?>" />
.
It works fine when I tested on local machine but when it goes online, the page loads very slow.
Is it better to save the image inside folder?
Thanks.