0

All data must be stored in one single persistent file name secure_store.dat.

The following command should add new files to the Secure Store realm:

put [path_on_OS] [file_name]

How can I do this ? How can I add a file that in my PC to secure.store ? Thank you.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

1 Answers1

0

If you don't mind that secure_store.dat will be a zipped file then you can use standard Java handling for zipped files...

Edit: When you add multiple files together into one single file you must store them in such a way to preserve their boundaries, if you fail to do that the two or more files will become garbled mess.

java.util.zip functionality provides all features that you seem to need, it will create a zipped archive file with separate entries for each file that you add. It provides functionality to add/extract/remove files from the archive too.

Germann Arlington
  • 3,315
  • 2
  • 17
  • 19