Ver Mensaje Individual
  #5  
Antiguo 04-06-2012
LucasBols LucasBols is offline
Miembro
NULL
 
Registrado: nov 2011
Posts: 10
Reputación: 0
LucasBols Va por buen camino
No creo,

La migración de la base de datos local a la remota lo hice con un dump y un restore

esta es la tabla (verificado, en las dos bd está igual):

Código SQL [-]
CREATE TABLE IF NOT EXISTS `imagen` (
  `idx_imagen` bigint(20) NOT NULL AUTO_INCREMENT,
  `idx_documento` bigint(20) NOT NULL,
  `imagen` longblob NOT NULL,
  `identificador` text NOT NULL,
  `nombre` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`idx_imagen`,`idx_documento`),
  UNIQUE KEY `idx_imagen_UNIQUE` (`idx_imagen`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

Esta es la consulta de inseción:

Código SQL [-]
Insert Into imagen (idx_documento, imagen, identificador, nombre) Values (0, ?, "idarch_xxx", "imagen_XXX.jpg");

Gracioas por tu respuesta,

Saludos,

Última edición por LucasBols fecha: 04-06-2012 a las 14:47:37.
Responder Con Cita