title: How to solve Java.io.FileOutputStream is restricted class in Google App Engine
body: <p>I am using <strong>Netbeans, google app engine, java</strong>. When I try to create pdf as follows it shows this error.</p>
  
  <p><strong>Java.io.FileOutputStream is restricted class in Google App Engine.</strong></p>
  
  <p>My code is,</p>
  
  <pre><code>Document document = new Document();
  
  PdfWriter.getInstance(document, new BufferedOutputStream(new FileOutputStream("C:\\Examplenamaaaa.pdf")));
  
  document.open();
  
  PdfPTable table = new PdfPTable(2);
  
  PdfPCell cell = new PdfPCell(new Paragraph("column span 2"));
  cell.setColspan(2);
  
  table.addCell(cell);
  
  table.addCell("1");
  
  table.addCell("Namita");
  
  table.addCell("2");
  
  table.addCell("Asmita");
  
  document.add(table);
  
  document.close();
  </code></pre>