Find Jobs
Hire Freelancers

Need server part to save image sent from ajax

$10-30 USD

已完成
已发布超过 6 年前

$10-30 USD

货到付款
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
项目 ID: 15462139

关于此项目

12提案
远程项目
活跃7 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
A proposal has not yet been provided
$25 USD 在1天之内
5.0 (1条评论)
0.8
0.8
12威客以平均价$26 USD来参与此工作竞价
用户头像
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 在1天之内
5.0 (100条评论)
6.6
6.6
用户头像
I can do it within one day
$55 USD 在1天之内
4.9 (61条评论)
5.9
5.9
用户头像
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 在1天之内
5.0 (65条评论)
5.2
5.2
用户头像
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 在3天之内
4.5 (31条评论)
5.4
5.4
用户头像
A proposal has not yet been provided
$20 USD 在2天之内
4.9 (16条评论)
3.1
3.1
用户头像
A proposal has not yet been provided
$25 USD 在3天之内
0.0 (0条评论)
0.0
0.0
用户头像
A proposal has not yet been provided
$25 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
A proposal has not yet been provided
$25 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
A proposal has not yet been provided
$25 USD 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
riverside, United States
4.8
1
付款方式已验证
会员自4月 24, 2015起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。