2
I use on a web page images that are loaded from a field of type blob
in the Firebird. The images open in a modal, fully loaded, that is, without using thumbnails, and when the user clicks on one of these images, the image is resized to a larger size and occupies the entire screen.
However this process to open the image is taking long, despite the file .png
or another image format already loaded on the client side. I use php
base64_encode, and this returns a huge text to be rendered in the element img
on the client side, I believe this is the case, but I found no other way than to display to the user what the image is loading.
Screen:
Why don’t you upload the image and save its link in the database ? save images in the database and dangerous, if the database corrupts you lose the images and every time you go to call a photo is a request to the database.
– Gabriel Rodrigues
There is no way to make the load faster without storing it in the computer but in the database?
– Giancarlo Abel Giulian