How to manage the data without database? [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
In my folder having many photos. I want to create photo comment. its like orkut. How to manage the commented data without db as per image.

You can use XML for storing comments. Why not use DB? Managing XML files for large number of photos will be pain. You can try out SQLIte which is compact and will serve your purpose.

Check out SQLite. Its a lightweight database that lives in a single file, so you dont have to set up a database server, but you get to leverage all of the sql libraries out there and quickly build up your system.

I would put the comment into the vb++ image metadata processor and store the comment in binary format with the encryption in side the image with the comment. You could even put the link to the image in the metadata for the image so you can find the image from the metadata.

Related

Export datagrid data to MS Word with style [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am using WPF windows application and I want to export data-grid data to Microsoft Word with background colors. Please suggest a way to do it.
I think you will need to use Microsoft.Office.Interop.Word namespace ... this is a walk-through https://msdn.microsoft.com/en-us/library/ee342218.aspx ... I guess you will be making use of the Table interface .
You will need msword at your machine and wherever your application is deployed.
Personally, if i had an option then i would export the data as CSV format and indicate the colour in one of the values.
That said, i don't really know the limitations but this should get you going .. alternatively try to find an open source lib that can help you with this. That is AFAIK there is no out of the box solution by .Net

Windows 8 APP : Store data [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
What is the best way to store data for a Windows 8 APP ?
I need to store from one to thousands of little pictures (max 300x300px) (Load from FilePicker).
Also, is there a recommended practice to store picture (A class rather than an other) ?w
Storing 1000 of images uncompressed in memory could hang computer, depending on images and memory available. So that's not the best practice.
You haven't mentioned why you need to do this, so there is no clear solution, but some guidelines:
if you need to show many pics on screen, use XAML (e.g. Image element) and set path to the image on web or local disk. Windows will do the caching for you. Also, put Image element in GridView or ListView and use Data binding
if you afraid that images might get lost and it is not enough to keep just path, copy them in ApplicationData LocalFolder.
if you need to do some operations on images, then load into memory the one you need or load them one by one.

How To: VS C# App Option to connect to various data sources? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am currently writing a program in C# that will connect to a database for various user data. The query I have at the moment is what would be the best practice to be able to connect to various databases from the program at runtime?
To clarify:
I may want to connect to Oracle R12, or MS SQL Server or maybe even a dumb old access database. I am fine with putting the connection methods into their respective classes, but what I really want is a config file to be packaged with the application which dictates the type of server used for each installation, the field naming convention, etc.
So should this connection file be a .dll? an encrypted text file? or something else?
Obviously I dont want the end user ready access to the connection details in case they try and do their own digging in the database outside of my application.
I would go with encrypted configuration section, it's pretty standard and there are many examples, here is MS documentation:
http://msdn.microsoft.com/en-us/library/89211k9b%28v=vs.80%29.aspx

Backup software solution problem [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Good time of a day!
My team develop the soft to backup files to web storage. Now it has simle functionality - just take files from hdd, check date in local and remote file and update remote to new local.
The product owner want to to make backup in another way: on remote server replace only chenge peace of file. They want to make less traffic to storage (it's Amazon S3)
Now we have a next solution: brake file into peaces (4 kb each), count checksum of each peace, store this data in local db and at next backup verify checksums and transfer only changed peace.
But the metadata take much place on db if we backup a big amount of files
Can anybody have another solution? Thanks for help!
Rsync uses rolling hash algorithm, so you might research that.

Without using database how Can I Search for a word and display it's related content in another field [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 months ago.
Improve this question
So the question can be reformatted as "What can replace a database in an offline version?"
The initial idea is inspired from wordweb where you just type the word and then you get the meaning of it displayed in a fraction.
Of-course they are not saving all the words and there meanings in a database. What are they using? Are they storing all the values in a file and retrieving the corresponding meaning?
Is there any article which shows the above approach(Reading a particular section of a file ).
Are they using HashTables or similar?
You could utilize a local database such as SQLite or you could utilize a text file and store your data in it.
I suggest you to use an embedded database to store words and meanings. Try to look at Sqlite. It's simple to use, just require to include a dll in your setup, and has a wrapper to use it from c#.
It is very stable ,fast and widely used.
I don't know what it is they are using, but there is at least SQLite, a database engine that doesn't require installing any server or other program, since it gets compiled into your executable and uses a single file for the database. That's as close as you'll get to an actual database with nothing but filesystem access.
Otherwise, if the amount of data isn't too large, you could store it in a file format that isn't too hard to parse (such as XML, although the overhead is considerable), load all your data into memory, and then use .NETs built-in DataSet functionality, or better yet, Linq to objects or Linq to datasets to manipulate the data.

Categories

Resources