title: Can I store an uploaded file in a FileInputStream object?
body: <p>the client supposed to to upload a .ppt file , and the server supposed to save it and display it.</p>
  
  <p>I did stored the (request.getContent() )in a DatainputStream object.</p>
  
  <pre><code>    DataInputStream pptFile = new DataInputStream(request.getInputStream());
  </code></pre>
  
  <p>But I cannot assign this type of variables ( DataInputStream) into an object from the library (org.apache.poi.hslf.usermodel.SlideShow).</p>
  
  <pre><code> DataInputStream pptFile = new DataInputStream(request.getInputStream());
   SlideShow ppt = new SlideShow ( pptFile );
  </code></pre>
  
  <p>I need to use the pptFile as a FileInputStream variable, I know that I can convert from FileInputStream to DataInputStream easily, but How can I do the opposite? (Converting from DataInputStream to FileInputStream) </p>
  
  <p>OR
  At least Can I store the (request.getContent) inside a FileInputStream ??</p>