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());
System.out.println("XD2 " + event.getFile().getContents());
FacesMessage msg = new FacesMessage("Succesful", event.getFile().getFileName() + " is uploaded.");