wieseljonas / java-libpst

Automatically exported from code.google.com/p/java-libpst
1 stars 1 forks source link

Getting Attachments #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Dear Richard,

I am using your jar file for my application in which I have to read a pst file 
and get the body and attachments as files of the different messages. I am 
unable to get the attachments as files. Please help me how to do this.

Thanks
Ankita Verma

Original issue reported on code.google.com by ankita.v...@gmail.com on 8 Sep 2010 at 10:35

GoogleCodeExporter commented 9 years ago
okay, for the 0.4 releases and below, you should be able to call 
PSTAttachment.getFileContents() and write the returned byte array to a file.

see: http://code.google.com/p/java-libpst/issues/detail?id=15

In 0.4.99 and trunk, this has been replaced with 
PSTAttachment.getFileInputStream()

Original comment by rjohnson...@gmail.com on 8 Sep 2010 at 10:47

GoogleCodeExporter commented 9 years ago
I still having the problem in reading the attachment file.Can you provide the 
snippet of it

Original comment by Achris1985 on 10 Jan 2013 at 12:08

GoogleCodeExporter commented 9 years ago
Okay, there was a bug with small attachments coming through encrypted; this 
should now be fixed with the version on github.

example code for reading attachments is provided on the bottom of the homepage: 
http://code.google.com/p/java-libpst/

Github development is happening here: https://github.com/rjohnsondev/java-libpst

Original comment by rich...@skimlinks.com on 10 Jan 2013 at 12:16