0

' //conexion include ("consultar.php"); session_start();

$id1=$_SESSION['id'];


//selecionamos la tabla de origen.
$query="SELECT * from publicados where codigo=$id1";
$result=mysqli_query($conexion, $query) or die("lo sentimos");
$row3=mysqli_fetch_array($result);

$titulo = $row3['titulo'];
//aqui tengo un problema y es que la imagen me la guarda en formato de tipo string siendo que en la //tabla de origen es de longblob como archivo binario
$imagen = $row3['imagen'];
$precio = $row3['precio'];
$cantidades = $_REQUEST['cantidad'];

$convertir=$row3['precio'];

$Suma=$convertir * $cantidades;

//cerramos la conexion

mysqli_close($conexion);
//abrimos otra conexion a otra base de datos
include("conexion-usuario.php");

//guardamos los datos de la otra tabla a esta.
$query2="insert into carrito (codigo, Titulo, imagen, precio, cantidades, Suma) values(?, ?, ?, ?, ?, ?)";
$stmt = mysqli_prepare($conexion1, $query2);
$stmt->bind_param('ssssss', $id1, $titulo, $imagen, $precio, $cantidades, $Suma);

' tengo un problema y es que me guarda la imagen de la otra tabla en dato de tipo string en vez de codigo binario.

1 respuesta 1

0

Bueno amigo lo primero que debes hacer es conocer que es base64 tienes que lograr convertir la imagen en base64

por ejemplo

data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCAC4ALgDAREAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZm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tVjpEOgmcnefFGztrm5ijjaYRxkxSxElZHyRjsdpABz156U3im2WsOkv6/zMez+KPha109Nc0o61ofjWwlZ7PUNMljEKSgnaWz8+OuQOucc5Nc9Sd9SeTlZ534q8bXPjW8ubvVXhGoSs0jTQQJGHZmyQVQBFHJxtAAHGAK4pyuUtjjELTyYnnECk43bd2OnPt0/+tXOtxosNcQfbgSqvbxR7nMnBOPu/jnH607aFqKuMWaxmK/uzFOSNpZ/kA9Dken/6qzVypU9C7ca4IbYi2lSZgpDbUIZQepGR0ranOZnY9C8J/tJeN/A3ha10jRNVg0JIMr9o02xgiuH7/NMqb25+bluSa6I1JXuS27Wvsd/qH7VOj6lpzXt94Rk1HxTe5N3M119lso5MAb44kUs2T8zFmHOeMV2QxFSKsn+Ri4Rbu0Ys37RGlT6TZWsXh24ttWjyZ7sXwlhnG7tH5YKcY/ibPtWzxdVf0v8AIn2MWYWrfFtNcsriO7sGhmVt1vJE2NqcbkfI5Vuh4/lWUsS5LX+vwCNJJ6HncmueZq8j2McogmR4RHcS/MmfmAOOv/6qz9pc6VGx6TYfHS/gsYI30mOR0RY9wlPzY4zjFbLGygrI5pUFNnQeEPH3in4g6x/Zfh3w0up6gYml+zwSEtsTlm+g60RxUqjstSasIUY802kl16dF39F6kPjLxf40+HmpwaVr+hR6VfGFJhFcAlij8q/Xv2rOWJb2ewU4wmuaLT+fbf7jmrj43a1yqx2SheCfKJx6d6X1qVrf1+RapK5ma38VNV1nT5baaO0aOQf6t4M+uDWP1pz3/r8CvZpanm2r6hdaipup8Iw+6Il2qMDA+nrRdSNFFCaLezS3aXcrs3kgDzGGe3A/kazlIVi7fatHeXcskpdyWDNIWxknNZbhY6X4f+BW8c6lPNNdCw0i1jL3V24DYIyFRASN7scBUHJ7DiuqnT9xvov8/wASNz//2Q==

este codigo puedes visualizarlo en este link copias todo el codigo y presionas generate image y te generar una imagen.

https://codebeautify.org/base64-to-image-converter

y la base de datos mysql de tipo longblob acepta esto vale..

si la imagen te esta guardando en tipo string estas haciendo algo mal busca como generar una imagen en base64

Tu Respuesta

By clicking “Publica tu respuesta”, you agree to our terms of service and acknowledge you have read our privacy policy.

¿No es la respuesta que buscas? Examina otras preguntas con la etiqueta o formula tu propia pregunta.