locked
How to save files in single DAT file in .NET? RRS feed

  • Question

  • Hi,
    Not sure where to put this question.

    I am trying to develop a desktop application in which I need to save some data locally. There will be images and information related to images in xml. There can be 100’s of images and multiple xml files.  These image files are not design time files. These are added by users of application. And that's what I want to save into DAT file.

    1. How can I save all files (images + xml file) into one DAT file (so to speak)?
    2. Could it be possible to save files in different folders inside that DAT file? If yes, how?
    3. If I decide to use Access dbf file instead of xml, can it be saved as part of dbf file?

    Please advice. Thanks
    Pankaj
    Thursday, October 15, 2009 5:51 PM

Answers

  • I would using an archive format like 7-Zip. 

    http://www.7-zip.org/sdk.html
    http://www.eggheadcafe.com/tutorials/aspnet/064b41e4-60bc-4d35-9136-368603bcc27a/7zip-lzma-inmemory-com.aspx
    http://www.eggheadcafe.com/tutorials/aspnet/08ddd61d-3111-4966-a80b-b366686e6659/using-compressed-resource.aspx
    • Marked as answer by Figo Fei Monday, October 19, 2009 6:55 AM
    Thursday, October 15, 2009 7:27 PM