Title: RE: problem d'ecriture dans un JSPWriter.
En fait, j'ai une page blanche.
 
pour le code suivant dans ma jsp :
 
// je genere le pdf
ByteArrayOutputStream baos= new ByteArrayOutputStream();
PDFGenerator.render(baos);
baos.close();
 
// je l'ecris dans  un fichier
  File file = new File("jsp-result.pdf");
  cat.debug("jsp-result.pdf Save in :"+file.getPath());
  FileOutputStream out3 = new FileOutputStream(file);
  out3.write(baos.toByteArray());
  out3.close();
// je le met en sortie de ma jsp.
  out.write(new String(baos.toByteArray()));
 
Dans mon jsp-result.pdf, j'ai le bon fichier.
 
Dans mon browser r�ultant, j'ai 10 lignes vides.
 
Laurent.
----- Original Message -----
Sent: Friday, February 28, 2003 1:20 PM
Subject: RE: problem d'ecriture dans un JSPWriter.

> Ca marche pas( disons que ca m'ecrit un pdf erron�).
>

Quand tu dis erron�, veux-tu dire tronqu� ?

Olivier

Répondre à