none
How to save/get custom file information RRS feed

  • Question

  • Hi,

    I am searching for a way to save custom made file related propertyitems.
    For example a image file can contain exif information.
    I would like to add some information together with the file which I can use lateron.

    Is this possible?

    Thursday, April 1, 2010 2:26 PM

Answers

  • Hi,

    I am searching for a way to save custom made file related propertyitems.
    For example a image file can contain exif information.
    I would like to add some information together with the file which I can use lateron.

    Is this possible?


    Yes it is possible, but I don't know the effort, especially from managed code.

    Look into NTFS streams.

    Cap'n

     

    I'll be damned :D Very cool indeed, and proves I know nothing about NTFS ;)

    Regards,

    Mikael Svenson


    Search Enthusiast - MOSS MCTS
    http://techmikael.blogspot.com/ - http://www.comperio.no/
    • Marked as answer by Willie007 Tuesday, April 6, 2010 8:13 AM
    Saturday, April 3, 2010 6:46 PM

All replies

  • If you are only looking at exif data for jpeg files you can check out this link on MSDN:

    http://msdn.microsoft.com/en-us/library/xddt0dz7.aspx

    Or use an exif library like the one at http://www.codeproject.com/KB/graphics/exifextractor.aspx

    Or do you want to add properties to all kinds of files (which there is no general way of doing)?

     

    Regards,

    Mikael Svenson

     

     


    Search Enthusiast - MOSS MCTS
    http://techmikael.blogspot.com/ - http://www.comperio.no/
    Friday, April 2, 2010 2:06 PM
  • "Or do you want to add properties to all kinds of files (which there is no general way of doing)?"

    Yes, that is what I want....

    Friday, April 2, 2010 2:08 PM
  • "Or do you want to add properties to all kinds of files (which there is no general way of doing)?"

    Yes, that is what I want....

    Short answer is it's not possible, at least not within the files themselves or in file system attributes. For file formats which support properties you can create an implementation per document format. Afaik you can do this for Office formats, some images and pdf's. But there might be more.

    My suggestion is that you create your own property files which resides either as a hidden file beside the file you want to add properties to, or create a propery store which keeps all the properties for you. Some sort of database.

    Before choosing a solution, how are you going to enter the property values, and how will you use them?

    Regards,

    Mikael Svenson


    Search Enthusiast - MOSS MCTS
    http://techmikael.blogspot.com/ - http://www.comperio.no/
    Friday, April 2, 2010 3:08 PM
  • Hi,

    I am searching for a way to save custom made file related propertyitems.
    For example a image file can contain exif information.
    I would like to add some information together with the file which I can use lateron.

    Is this possible?


    Yes it is possible, but I don't know the effort, especially from managed code.

    Look into NTFS streams.

    Cap'n

     

    • Proposed as answer by Captain Kernel Thursday, April 8, 2010 1:54 AM
    Saturday, April 3, 2010 6:41 PM
  • Hi,

    I am searching for a way to save custom made file related propertyitems.
    For example a image file can contain exif information.
    I would like to add some information together with the file which I can use lateron.

    Is this possible?


    Yes it is possible, but I don't know the effort, especially from managed code.

    Look into NTFS streams.

    Cap'n

     

    I'll be damned :D Very cool indeed, and proves I know nothing about NTFS ;)

    Regards,

    Mikael Svenson


    Search Enthusiast - MOSS MCTS
    http://techmikael.blogspot.com/ - http://www.comperio.no/
    • Marked as answer by Willie007 Tuesday, April 6, 2010 8:13 AM
    Saturday, April 3, 2010 6:46 PM
  • Hi,

    I am searching for a way to save custom made file related propertyitems.
    For example a image file can contain exif information.
    I would like to add some information together with the file which I can use lateron.

    Is this possible?


    Yes it is possible, but I don't know the effort, especially from managed code.

    Look into NTFS streams.

    Cap'n

     

    I'll be damned :D Very cool indeed, and proves I know nothing about NTFS ;)

    Regards,

    Mikael Svenson


    Search Enthusiast - MOSS MCTS
    http://techmikael.blogspot.com/ - http://www.comperio.no/


    Very powerful, hardly used them myself but I do always keep them in mind when designing low level OS APIs. MS still don't really promote NTFS streams very much at all, which is odd because they really are very powerful.

    Cap'n

     

    Saturday, April 3, 2010 8:26 PM
  • Hi,

    I am searching for a way to save custom made file related propertyitems.
    For example a image file can contain exif information.
    I would like to add some information together with the file which I can use lateron.

    Is this possible?


    Yes it is possible, but I don't know the effort, especially from managed code.

    Look into NTFS streams.

    Cap'n

     

    I'll be damned :D Very cool indeed, and proves I know nothing about NTFS ;)

    Regards,

    Mikael Svenson


    Search Enthusiast - MOSS MCTS
    http://techmikael.blogspot.com/ - http://www.comperio.no/


    Very powerful, hardly used them myself but I do always keep them in mind when designing low level OS APIs. MS still don't really promote NTFS streams very much at all, which is odd because they really are very powerful.

    Cap'n

     

    Saturday, April 3, 2010 8:26 PM
  • thanks.

    this helped me a lot.

    Tuesday, April 6, 2010 8:13 AM
  • thanks.

    this helped me a lot.

    Tuesday, April 6, 2010 8:15 AM