Ver Mensaje Individual
  #6 (permalink)  
Antiguo 14/01/2016, 22:00
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

Código:
 @POST
    @Path("guardarImagenes")
    @Consumes({"application/json"})
    @Produces("text/plain")
    public int guardarImagenes(Imagenes entity) {
        if(entity.getIdActivo().getIdActivo()!=0){
            em.persist(entity);
            return 1;
        } else {
            return 0;
        }
    }