Good people, I'm a little late in my tcc because of not being able to upload the image. What I have hj worked and take the photo, save in the flock sqlite the path and latitude and longitude, however I have a screen in my app that I should send a picture with a register, the registration is ok only missing the image. The registration data is sent to a web service in PHP, but I do not know how to send the image, and I have to select the image from the gallery and send it, returning the path of it and save it in the database along with the other data. form submitted. If anyone can give me a help then thank you ...
WEB SERVICE CODE
<?php
if($_SERVER["REQUEST_METHOD"]=="POST"){
require 'connect.php';
inReg();
}
function inReg() {
global $connect;
$id_usuario = $_POST["id_usuario"];
$tipo_atividade = $_POST["tipo_atividade"];
$tipo_local= $_POST["tipo_local"];
$quantidade = $_POST["quantidade"];
$query = " Insert into registro_animal(id_usuario, id_tipo_atividade,id_tipo_local,quantidade) values ('$id_usuario','$tipo_atividade','$tipo_local','$quantidade')";
mysqli_query($connect, $query) or die (mysqli_error($connect));
mysqli_close($connect);
}
?>