В следующем Nodejs коде Я получаю изображение в формате Base64, и я хочу отправить это изображение на Python с сокетом.
var express = require('express');
var app = express();
var server = require('http').createServer(app);
var io = require('socket.io')(server);
app.use(express.static('public'));
app.use(express.static(__dirname + '/node_modules'));
app.get('/', function(req, res,next) {
console.log('loading...');
res.sendFile(__dirname + '/index3.html');
});
server.listen(4200);
io.on('connection', function(client) {
console.log('Client connected...');
client.on('join', function(data) {
console.log(data);
});
client.on('matObj', function(data) {
console.log("Img => "+data);
// code to send image to python, data contain base64 image
});
});
HTML код: отправляю изображение с сокетом. Я хочу отправить одно и то же изображение в python с сокетом. Если есть какой-либо другой способ сделать это, например, можно ли отправить изображение напрямую из HTML / JS в Python3?
<html lang="en">
<head>
</head>
<body>
<h1>Hello World!</h1>
<div id="future"></div>
<input type="button" value="image send" onclick="sendImg()">
<img id="imgs" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxITEhUSExMWFhUXFxUVFRYYFRcaFxUXFRcXFxUXFRUYHSggGBolGxgXITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OFxAQGisdHR0tLy0tLS0tLS0tLS0tLy0tLS0tKy0vLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIANsA5wMBIgACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAAAAQIDBAYFBwj/xABJEAABAwEEBQYJCAcJAQAAAAABAAIDEQQFEiETMUFRkQYHYXGh0RQiMlKBkpOxwSNCU2Jj0uHwFzNDVKKywhUWJDREcoKj8XP/xAAZAQEAAwEBAAAAAAAAAAAAAAAAAQMEAgX/xAApEQEAAQMCBgICAgMAAAAAAAAAAQIDEQQhEhQxMlFhE6EiQTOBYnGx/9oADAMBAAIRAxEAPwCpogPz3JWAfklTyNFaVRHZ14j0wyMdPFPEI3nilMZH5KjqUSfom+ceI6UoaN/uTQOhSCMbR2ICg3lKAN57EmjamOhbuQPLh5xTD0EqleGka0FjK5iu+nQs14fbBIA7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q1tszDrFeuqkyz123/M2QB7q1yOKuVNh3Lb2S8A4CtB+dywVojGKtM6nP0rv3bk0FdVTH6gao2xuzNIba3cuaChzjvPFRky6Hho83tSG1jzVzcRrrKeSd54qRbktFfmpmnO5QVTC470Qsmc7gm6Y7gonHJRuKC1pej88FHpj5vYq5eVG95zUoWNKRsr6Amun+qOCrF5TS8olYdP0e5Qvm6FEXn3pkjyowg50yge9I9xULnFQFe4KtKVI5yjcVzIqyRgqhC17CQTUVyXTkVSfUppn9OoLHICparlxO8ZXWOKmqjCZK9Ca4oSIQ/9k=" alt="noload">
<script src="/jquery/dist/jquery.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script src="image-to-base64/image-to-base64.min.js"> </script>
<script>
var socket = io.connect();
socket.on('connect', function(data) {
socket.emit('join', 'Hello World from client');
});
function sendImg(){
myImg = document.getElementById('imgs').src;
console.log(myImg);
socket.emit('matObj', myImg);
}
</script>
</body>
</html>