Author Archives: phpspiderblog

How to save image in Database using PHP ?

Step 1: First of all Convert image to binary.   <?php $imageURL =’YOUR_IMAGE_URL’; //or you can upload $convertedImage = base64_encode(file_get_contents($imageURL)); /** Now store $convertedImage in Database using database functions.**/   ?> <?php $imageURL =’YOUR_IMAGE_URL’; //or you can upload $convertedImage = base64_encode(file_get_contents($imageURL)); /** Now store $convertedImage in Database using database functions.**/ ?>