how to optimize OpenCart website ?
Ways to Speed up OpenCart website There are several ways to Optimize OpenCart website that help improve your site's speed and performance. The procedures below show you how to do this so
Read More
In this post, I will be able to allow you to skills to handle the pictures encoded with Base64 and convert the pictures to a folder.
While working with API for app, you'll notice that they're going to send the format of images in Base64 encoded. So therein case, you'll got to move the Base64 encoded images to server as a image file.
In PHP, It's very easy to urge image file from Base64 encoded.
While working with canvas, you'll have base64 encoded string within the form, then you'll send the shape data to the server using POST method and on the server, you change them into a picture file.
Below are the sample Convert base64 Data to an image file:-
define('UPLOAD_DIR', 'images/');
$imageparts = explode(";base64,", $_POST['image']);
$imagetypeaux = explode("image/", $imageparts[0]);
$imagetype = $imagetypeaux[1];
$imagebase64 = base64_decode($image_parts[1]);
$file = UPLOAD_DIR . uniqid() . '.png';
file_put_contents($file, $imagebase64);
?>
Ways to Speed up OpenCart website There are several ways to Optimize OpenCart website that help improve your site's speed and performance. The procedures below show you how to do this so
Read MoreHire Web Developers in Coimbatore: Empower Your Digital Presence It is now imperative to have a professional and vibrant online presence in the cutthroat digital world. Hiring qualified web develop
Read MoreWe are going to explain how to get the time difference between timeslots. below are the simple example given to get the time difference between the two given slots. As you can see we have used the inb
Read More