Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/01/2016, 12:39
LDN
 
Fecha de Ingreso: diciembre-2015
Mensajes: 22
Antigüedad: 8 años, 5 meses
Puntos: 0
Mensaje Respuesta: Guardar imagen en base64 con restful

Ya e quitado los corchetes, y me a marcado lo siguiente:

Código:
type Exception report

messageInternal Server Error

descriptionThe server encountered an internal error that prevented it from fulfilling this request.

exception 
javax.servlet.ServletException: javax.ejb.EJBException: Transaction aborted


root cause 
javax.ejb.EJBException: Transaction aborted


root cause 
javax.transaction.RollbackException: Transaction marked for rollback.


root cause 
javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'ACTIVO' in 'field list'
Error Code: 1054
Call: INSERT INTO imagenes (ACTIVO, DESCRIPCION, IMAGEN, ID_ACTIVO) VALUES (?, ?, ?, ?)
	bind => [4 parameters bound]
Query: InsertObjectQuery(activo.entities.Imagenes[ idImagenes=0 ])


root cause 
Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'ACTIVO' in 'field list'
Error Code: 1054
Call: INSERT INTO imagenes (ACTIVO, DESCRIPCION, IMAGEN, ID_ACTIVO) VALUES (?, ?, ?, ?)
	bind => [4 parameters bound]
Query: InsertObjectQuery(activo.entities.Imagenes[ idImagenes=0 ])


root cause 
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'ACTIVO' in 'field list'
El uso de los corchetes lo hago en otros web service y me va perfecto, tengo el problema en saber como subir las o la imagen, en específico el formato que debe llevar.