Upload images using BLOB in the database