troubleshooting Question

Storing and retrieving data from files

Avatar of ezpete
ezpete asked on
Delphi
20 Comments1 Solution448 ViewsLast Modified:
I am working on a project that requires me to store large amounts of sensative  data to a file and later retrieve that data and show it in a Grid all sorted out in a nice and neat way.

I have chosen to use the (GridView) compoent by Berg Software to load the data into and my questions are.

1.) How would I go about extracting only parts of the data that is in the file (ex. a subject for an email) and displaying it as one of the cells in the grid and then later when I click on that cell extracting the body of the above email message and showing it in a new window.

2.) Since I will be working with large amounts of sometimes sensative data I would like to be able to compress and encrypt the data inside of the files so nobody can view it outside of the program so my question is obviously what is the best way to do that and ofcourse uncompress and decrypt it again so the program can use it.

I know this all might sound abit confusing so I will try my best to give you an example of the program.

Example:

A person opens up the program and writes an email to a friend with the subject of "Hey There" and then the body of the email is "Long time no see"  and then presses a button and what should happen next is the subject and the body of the email should be encrypted and stored in a local file that will then be compressed to keep it's size down.

Next when the user opens the program again the local file is automatically uncompressed and decrypted and the subject of the email (ie. Hey There) will be displayed in cell of the Grid and when the user clicks on that cell another window will open up with the body of that message (ie. Long time no see)

Anyway I hope that makes things abit clearer and to summerize again what I need help with is the best way to compress/decompress  and encrypt/decrypt the data from the file and extract only part of the data from the file when the program starts and then later extract the rest as needed.

I know this is more like 3 questions instead of 1 but they all fit together and I did not want to start a new topic for each of them and so I thought I would just ask them all here and give it a high point value.

Cheers


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 20 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 20 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros