Find Jobs
Hire Freelancers

Need server part to save image sent from ajax

$10-30 USD

Completed
Posted over 6 years ago

$10-30 USD

Paid on delivery
I captured the image from webcam and want to sent it to Flasks server. I have the ajax part to send image to flask. Now I do need back end part to handle this data uploaded to server. I have the similar PHP code that handle the ajax call, but I need the python code on server instead of PHP ajax call $.ajax({ type: "POST", contentType: false, cache: false, processData: false, async: false, url: "/upload", data: { imgBase64: dataURL } }).done(function(o) { [login to view URL]('saved'); // If you want the file to be visible in the browser // - please modify the callback in javascript. All you // need is to return the url to the file, you just saved // and than put the image in your browser. }); [login to view URL] <?php define('UPLOAD_DIR', 'images/'); $img = $_POST['imgBase64']; $img = str_replace('data:image/png;base64,', '', $img); $img = str_replace(' ', '+', $img); $data = base64_decode($img); $file = UPLOAD_DIR . uniqid() . '.png'; $success = file_put_contents($file, $data); //send request to ocr print $success ? $file : 'Unable to save the file.'; ?> Need server code similar to php above to handle data sent from ajax call
Project ID: 15462139

About the project

12 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
5.0 (1 review)
0.8
0.8
12 freelancers are bidding on average $26 USD for this job
User Avatar
I am a python developer having 6 + experience in IT industry. I am expert in: Django and Flask and REST API application development CSS, HTML5, Javascript, AJAX, JQuery, Bootstrap Relevant Skills and Experience Django and Flask and REST API application development CSS, HTML5, Javascript, AJAX, JQuery, Bootstrap Proposed Milestones $25 USD - NA
$25 USD in 1 day
5.0 (100 reviews)
6.6
6.6
User Avatar
I can do it within one day
$55 USD in 1 day
4.9 (61 reviews)
5.9
5.9
User Avatar
Dear Sir, i can do it perfectly please reply am expert in php,mysql,ajax etc i can easlity save image to server. i wish to do this task please reply to me Relevant Skills and Experience PHP,MYSQL,AJAX,JQUERY Proposed Milestones $25 USD - 1 HOUR
$25 USD in 1 day
5.0 (65 reviews)
5.2
5.2
User Avatar
Hi I'm a professional Node.Js developer. this is an easy task for me. I'm new here, looking for reviews here. my job success rate is 100% pls consider me for this job.
$12 USD in 3 days
4.5 (31 reviews)
5.4
5.4
User Avatar
A proposal has not yet been provided
$20 USD in 2 days
4.9 (16 reviews)
3.1
3.1
User Avatar
A proposal has not yet been provided
$25 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
riverside, United States
4.8
1
Payment method verified
Member since Apr 24, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.