> POIFSFileSystem newDoc = new POIFSFileSystem();
> EntryUtils.copyNodes(attachment.attachmentDirectory.getDirectory(),
> newDoc.getRoot());
> File fileToWrite = new File("C:/CR0040POC/detachedMail/" +
> attachMsg.getConversationTopic()+".msg");
> OutputStream outStream = new FileOutputStream(fileToWrite);
> newDoc.writeFilesystem(outStream);
> //In this way it is giving me error in opening file.

What sort of error? This looks like it ought to work 

It is giving me 
http://apache-poi.1045710.n5.nabble.com/file/n5710420/error.bmp 

--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Read-msg-file-inside-other-msg-file-tp5710411p5710420.html
Sent from the POI - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to