filmov
tv
how to upload base64 image in codeigniter using postman

Показать описание
hi guys in this video we learn how to upload base64 image in codeigniter using postman.
code
//generate unique name
$date = new DateTime();
$startdata = $date-format('YmdHis');
$newName = str_replace('/', '', $startdata) . $userid;
// get base64 image form request
// you just need to replace the content variable with your variable send from the postman
//replace bracket
$image =$this-*input-*post("content");
$image_name= $newName;
//convert base64 to image and save in specific location/dir
file_put_contents(
"application/assets/uploads/".$image_name.".jpg",
base64_decode(
str_replace('data:image/jpeg;base64,', '', $image)
)
);
if you have any issue comment below
share support subscribe
#allroundzone
#allround
code
//generate unique name
$date = new DateTime();
$startdata = $date-format('YmdHis');
$newName = str_replace('/', '', $startdata) . $userid;
// get base64 image form request
// you just need to replace the content variable with your variable send from the postman
//replace bracket
$image =$this-*input-*post("content");
$image_name= $newName;
//convert base64 to image and save in specific location/dir
file_put_contents(
"application/assets/uploads/".$image_name.".jpg",
base64_decode(
str_replace('data:image/jpeg;base64,', '', $image)
)
);
if you have any issue comment below
share support subscribe
#allroundzone
#allround
Convert Image to Base64 [Use it inside img tag in HTML]
Using upload service to upload base64 image to firebase and splitting image data
Convert Image to base64 and Preview Image in React Js
Creating an Image to Base64 Converter App using #Angular with #ChatGPT #OpenAI #LanguageModel
How to convert image to Base64
File upload as JSON base64 encoded
how to upload base64 image in codeigniter using postman
Upload base64 image in Node.js
How To Convert an Image to a Base64 String using C# 10
How to convert image file to base64 code and use it in your HTML file.
How to Upload Base64 image via REST API in PHP | PHP Tutorial | Learn PHP
How to Convert Images Into Base 64 Data URLs with JavaScript
How to Convert Base64 Code to Image or Image to Base64 Code Online Tool for Beginners
How to upload base64 file in PHP
How to Convert Your Images To Base64
Store Image in Base64 in MongoDB Using MERN Stack
Easily convert a base64 image to a PNG file
How to convert Base64 to Image
Upload base64 image to amazon s3
How to Convert Your Base64 String to Image Online for Free in 2019
How to upload image in React js Mongo db and node. Display image from Mongo. Convert image to Base64
Store images directly in database with base64 | Quick tutorial with JavaScript, PHP & MySQL Mari...
How to Convert a Base64 Image String into an Actual Image File for Upload
How to convert an uploaded image to base64
Комментарии