Package org.primefaces.model

Examples of org.primefaces.model.DefaultStreamedContent


      x.setPerfil(obtienePerfilPersona(x.getStrCodigoPersona()));
     
      StreamedContent image;
     
       if(x.getFotobin()!=null){
         image = new DefaultStreamedContent(new ByteArrayInputStream(x.getFotobin()));
        
         x.setScImagen(image);
       }
     }
   
View Full Code Here


    em.close();
   
    if(entidadUsuario!=null){
    StreamedContent image; 
      if(entidadUsuario.getPersonas().getFotobin()!=null){
         image = new DefaultStreamedContent(new ByteArrayInputStream(entidadUsuario.getPersonas().getFotobin()));

         entidadUsuario.getPersonas().setScImagen(image);
       }
     
      return entidadUsuario;
View Full Code Here

    em.close();
   
    if(entidadUsuario!=null){
      StreamedContent image; 
      if(entidadUsuario.getPersonas().getFotobin()!=null){
         image = new DefaultStreamedContent(new ByteArrayInputStream(entidadUsuario.getPersonas().getFotobin()));

         entidadUsuario.getPersonas().setScImagen(image);
       }
     
      return entidadUsuario;
View Full Code Here

   public void cargarDocumentoInsertar(FileUploadEvent event) { 
        System.out.println("en cargarDocumentoInsertar ... ");
        System.out.println("Nombre archivo: " + event.getFile().getFileName());
       
        try {
            documento = new DefaultStreamedContent(event.getFile().getInputstream());
           
            System.out.println("otra vez el nombre: " + event.getFile().getFileName());
         
            byte[] foto = event.getFile().getContents();
            misolicitud.setCertificadobin(foto);
View Full Code Here

       }
      
       for (SolicitudExoneracion x : solicitudesExoneracion) {
         StreamedContent image;
        
         image = new DefaultStreamedContent(new ByteArrayInputStream(x.getFotobin()));
        
         x.setScImagen(image);
      }
      
      
View Full Code Here

     }
    
     for (SolicitudRetiro x : solicitudesRetiro) {
       StreamedContent image;
      
       image = new DefaultStreamedContent(new ByteArrayInputStream(x.getCertificadobin()));
      
       x.setScImagen(image);
    }

    em.close();
View Full Code Here

    
     for (Alumno x : alumnos) {
       StreamedContent image;
      
       if(x.getFotobin()!=null){
         image = new DefaultStreamedContent(new ByteArrayInputStream(x.getFotobin()));
        
         x.setScImagen(image);
       }/*else{
         InputStream stream =
          
View Full Code Here

  
   public void cargarImagen(FileUploadEvent event) { 
        System.out.println("XD " + event.getFile().getFileName());
       
        try {
            image = new DefaultStreamedContent(event.getFile().getInputstream());
           
            System.out.println("XD2 " + event.getFile().getFileName());
           
            byte[] foto = event.getFile().getContents();
            exoneracion.setFotobin(foto);
View Full Code Here

      System.out.println("XD1 " + selectedAlumno.getFotobin());
      System.out.println("XD2 " + event.getFile().getContents());
     
      try {
       
        selectedAlumno.setScImagen(new DefaultStreamedContent(event.getFile().getInputstream()));
         
          System.out.println("XD" + event.getFile().getFileName());
         
          byte[] foto = event.getFile().getContents();
          selectedAlumno.setFotobin(foto);
View Full Code Here

   public void cargarImagenInsertar(FileUploadEvent event) { 
        System.out.println("cargarImagenInsertar");
        System.out.println("XD " + event.getFile().getFileName());
       
        try {
            image = new DefaultStreamedContent(event.getFile().getInputstream());
           
            System.out.println("XD" + event.getFile().getFileName());
           
            byte[] foto = event.getFile().getContents();
            nuevoAlumno.setFotobin(foto);
View Full Code Here

TOP

Related Classes of org.primefaces.model.DefaultStreamedContent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.