File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Read (access) FireFox cookies.sqlite file

 
Se Koan
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing a java applet that shows FireFox cookies. How to open the cookies.sqlite of FireFox 5 and read that database in Java?

I successfuly accessed cookies.sqlite of Firefox 3 but can't do it with versions 3+
I tried with org.sqlite.JDBC driver but without success. And got exception: file is encrypted or is not a database.
Is it necessary to decrypt the file first or get a permission?
I tried SqlJetDb and it gives exception "org.tmatesoft.sqljet.core.SqlJetException: NOTADB: error code is NOTADB"

Is there anything else do the task of showing FireFox5 cookies?
Thanks.
 
Se Koan
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just in case anybody will need it I have downloaded the latest sqlite jdbc 3.7.2 and now everything works fine.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic