Una vez mas requiero de su poderosa ayuda. Resulta que tengo un objeto que requiere enviarle un Object[] para que funcione
Código:
Esto funciona... pero si por casualidad de la vida no tengo la ruta absoluta del archivo sino los bytes[] del mismo .. como hago que funcione lo anterior?... Object[] archivoEnObjectCargadoEnVisor = new Object[]{fileChooser.getSelectedFile().getAbsolutePath()}; visor_jpedal.getViewer().executeCommand(Commands.OPENFILE, archivoEnObjectCargadoEnVisor); ...
He intentado ..
Código:
y esto .... ByteArrayInputStream bain = new ByteArrayInputStream(archivoEnBytes); bain.reset(); ObjectInputStream ois = new ObjectInputStream(bain); archivoEnObjectCargadoEnVisor = new Object[]{ois}; visor_jpedal.getViewer().executeCommand(Commands.OPENFILE, archivoEnObjectCargadoEnVisor); ....

Código:
pero nada... .... ByteArrayInputStream bain = new ByteArrayInputStream(archivoEnBytes); bain.reset(); ObjectInputStream ois = new ObjectInputStream(bain); archivoEnObjectCargadoEnVisor = (Object[]) ois.readObject(); visor_jpedal.getViewer().executeCommand(Commands.OPENFILE, archivoEnObjectCargadoEnVisor); ....

Muchas gracias y muchos éxitos.