• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Create file in Memory

 
Mark Dathorne
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use FileOutputStream to create an Excel file using POI.

Trouble is this creates a physical file in [JBOSS_LIB]/bin
How can I create the same file in memory instead?

cheers.
 
Paul Clapham
Sheriff
Posts: 21889
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By using a ByteArrayOutputStream.
 
Mark Dathorne
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks very much, Paul.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!