954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help to read .pst file from java

Hi all

I need help to read outlook pst file from java.My pst file is stored in local hard disk.Now i want my java program to read that pst file.Kindly provide some inputs so as to proceed to the solution for the said problem.Can i do this through javamail api?

Thanks and regards
Umadas

umadas
Newbie Poster
7 posts since Jan 2007
Reputation Points: 10
Solved Threads: 0
 

It's just a file, so reading it using the standard Java IO API should be child's play.
Figuring out what all those bytes mean is going to be more tricky, but I'm pretty sure someone's done that already and published the file format specification for you to find using your favourite search engine.
It's also more than likely that that search engine could find you a library that does that decoding for you.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

Keep in mind that outlook will lock the pst file, so your java program won't be able to access it at the same time if you have outlook running. This link appears to give a good description of the file's format.

http://www.five-ten-sg.com/libpst/rn01re04.html

Upon further reading, those files can be up to 2GB in size, nothing you would want to load in memory all at once. Just a little tidbit of info if you do plan on writing your own pst parser.

Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51
 
Hi all I need help to read outlook pst file from java.My pst file is stored in local hard disk.Now i want my java program to read that pst file.Kindly provide some inputs so as to proceed to the solution for the said problem.Can i do this through javamail api? Thanks and regards Umadas


I was wondeirng if you managed to do this I am trying to do a pst editor with some difficulty

primbech
Newbie Poster
1 post since Dec 2007
Reputation Points: 10
Solved Threads: 0
 

Hi there primbech and welcome to Daniweb,

What specific difficulties are you having with your pst editor? Maybe post some of your code and we will try to help. :)

darkagn
Veteran Poster
1,197 posts since Aug 2007
Reputation Points: 404
Solved Threads: 200
 
Hi all I need help to read outlook pst file from java.My pst file is stored in local hard disk.Now i want my java program to read that pst file.Kindly provide some inputs so as to proceed to the solution for the said problem.Can i do this through javamail api? Thanks and regards Umadas

There is a library to read 32-bit and 64-bit .pst files. Here you will find examples JPST

Laura.Kit
Newbie Poster
1 post since Dec 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You