Quote Originariamente inviata da Pippozzo Visualizza il messaggio
Rivedendo meglio la libreria che uso : javax.activation, potrei fare così :

DataHandler handler =pdfDocument.value;
DataSource dataSource = handler.getDataSource();
File f = new File(dataSource.getName());
FileOutputStream w =new FileOutputStream (f);
handler.writeTo(w);

dove il metodo writeTo retrieves the InputStream and copies the bytes from the InputStream to the OutputStream passed in.
perchè pdfDocument.value è null ??
cioè è il pdf che mi ritorna il servizio, ma è sempre null ? C'è qualcosa che sbaglio? non riesco a capire