473,386 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

storing data not in xml nor database

Hi all,

I was wondering what other possibilities I have to save data.

I know I can store data into a database and into clear readable files
i.e. XML. However I would like to save my data into a file, which the
user can no "easily" read or better said access. What options do I
have? Is binary output the only way to go? Does anyone have a link to
a code snippet or tut? Main goal is to make the reading of the file
most difficult.

Thanks!

Casper

Aug 17 '07 #1
5 1267
On Aug 17, 12:22 pm, "Casper F." <casper.feldm...@googlemail.com>
wrote:
I know I can store data into a database and into clear readable files
i.e. XML. However I would like to save my data into a file, which the
user can no "easily" read or better said access. What options do I
have? Is binary output the only way to go? Does anyone have a link to
a code snippet or tut? Main goal is to make the reading of the file
most difficult.
Maybe you could use a package file. Check this link:

http://msdn.microsoft.com/msdnmag/issues/07/08/OPC/

Chris

Aug 17 '07 #2
Hi,

"Casper F." <ca*************@googlemail.comwrote in message
news:11*********************@19g2000hsx.googlegrou ps.com...
Hi all,

I was wondering what other possibilities I have to save data.

I know I can store data into a database and into clear readable files
i.e. XML. However I would like to save my data into a file, which the
user can no "easily" read or better said access. What options do I
have? Is binary output the only way to go? Does anyone have a link to
a code snippet or tut? Main goal is to make the reading of the file
most difficult.
You can always save it in a Text file and then zip it, IIRC you can
serialize your dataset to a memorystream and then zip this stream to a file,
in this way you never have a text file in disk, just the zipped file

Aug 17 '07 #3
But, the zip file is easily opened.
If security is important, you can use CryptoStream Class.
Roger

>
You can always save it in a Text file and then zip it, IIRC you can
serialize your dataset to a memorystream and then zip this stream to a
file, in this way you never have a text file in disk, just the zipped file


Aug 17 '07 #4
Casper F. wrote:
I know I can store data into a database and into clear readable files
i.e. XML. However I would like to save my data into a file, which the
user can no "easily" read or better said access. What options do I
have? Is binary output the only way to go? Does anyone have a link to
a code snippet or tut? Main goal is to make the reading of the file
most difficult.
I would go for XML or database and store the sensitive data encrypted.

The binary solutions can create a lot of problems and are not really
secure anyway.

Arne
Aug 18 '07 #5
You could write the xml in memory and then using the cryptology namespace
encrypt the whole thing. Take the Encrypted memory stream write to a text
file. I would have the Vector and key stored in the App.Config/Web.Config
file as an app key/value. Then to use the file, Decrypt the file and read
the the xml.
Sep 15 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Francisco | last post by:
I have this problem: I have a database with information about games, and users are able to vote for them. Everytime a user votes for a game I store the unique game name into a session variable (an...
7
by: Dave | last post by:
I have a system that basically stores a database within a database (I'm sure lots have you have done this before in some form or another). At the end of the day, I'm storing the actual data...
5
by: Don Vaillancourt | last post by:
I'm building a system when one can upload a document to the website. I will be storing the document on the hard-drive for quick/easy access, but I was also thinking of storing it in an existing...
6
by: bissatch | last post by:
Hi, I am currently writing a news admin system. I would like to add the ability to add images to each article. What I have always done in the past is uploaded (using a form) the image to a...
4
by: Rednelle | last post by:
Greetings all, As a newbie, using Access 2000, I would appreciate advice on the best way to include pictures. I have developed a 'Home Inventory' database which can include jpeg thumbnails of...
6
by: Kyle Teague | last post by:
What would give better performance, serializing a multidimensional array and storing it in a single entry in a table or storing each element of the array in a separate table and associating the...
6
by: (PeteCresswell) | last post by:
User wants to go this route instead of storing pointers in the DB and the documents outside. Only time I tried it was with only MS Word docs - and that was a loooong time ago - and it seemed to...
7
by: Mike | last post by:
I have developed an application, for psyc patients.... they type in very personal information in a web form to help them work through problems in their lives. Once they enter the info, I encrypt...
3
by: Lucky_Syringe | last post by:
I wrote this script to display different files from a database and properly display them by their respective MIME types. I have two questions: the first is that it just so happens not to work, and...
3
by: Annonymous Coward | last post by:
I remember readng that BLOBs can be stored externally (with reference to the BLOB file stored in tables instead). Does anyone have any experience doing this ? I have a few questions: 1).what...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.