473,386 Members | 1,745 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.

Is there a way to add metadata to a file?

I have a binary file (zip file) that's being created by my app and I
would like to store a comma delimited list of items contained in that
file (e.g. the .zip file contains 5 large TIFF images and I want to
store the description of each image as meta data on the zip so I can
easily extract these descriptions to populate a drop down list).

For example:
Grand Canyon, Egypt at Night, SF Bridge,
would be the single text string I would I would like to store as meta
data.

I know Windows OS offers Summary info on files, but I need the meta
data to survive an ftp transfer up to a server and down to a clients
system and Windows file summary meta data does not.

So I'm looking for best approach recommendations, I'm trying to avoid
having to have the meta data in a separate xml file.

Oct 24 '07 #1
3 9926
JDeats,

Actually, it most likely is in the file. Vista (and XP, to some degree)
will recognize XMP packets in media files (which support it, meaning, AVI
files, TIFF, JPG, MP3 and others).

I know of one commercial .NET component for working with XMP data in
files:

http://www.chilkatsoft.com/xmp-dotnet.asp

You could use the XMP SDK from Adobe, but it is in unmanaged code, and
you would have to handle all the marshaling yourself (as well as create
wrappers for the class libraries, as I don't think those libraries export
functions).

When you tag files in Vista now, it actually writes XMP data to the file
(personally, I use Adobe Bridge, and XP and Vista recognizes them just
fine).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"JDeats" <Je**********@gmail.comwrote in message
news:11**********************@q3g2000prf.googlegro ups.com...
>I have a binary file (zip file) that's being created by my app and I
would like to store a comma delimited list of items contained in that
file (e.g. the .zip file contains 5 large TIFF images and I want to
store the description of each image as meta data on the zip so I can
easily extract these descriptions to populate a drop down list).

For example:
Grand Canyon, Egypt at Night, SF Bridge,
would be the single text string I would I would like to store as meta
data.

I know Windows OS offers Summary info on files, but I need the meta
data to survive an ftp transfer up to a server and down to a clients
system and Windows file summary meta data does not.

So I'm looking for best approach recommendations, I'm trying to avoid
having to have the meta data in a separate xml file.

Oct 24 '07 #2
The ZIP file format doesn't store metadata other than its own.
The .NET framework 2.0 doesn't directly support ZIP files. If you're
using a third party ZIP library, see if they support metadata. If
you've rolled your own -- there's a way to do it using the .NET Gzip
libraries for deflation and writing your own file tables -- you should
be able to extend it however you like. If you still need it to be
compatible, you could maybe try a zero-byte file whose filename is the
metadata. Various other ZIP file readers may or may not display zero-
byte files.

TIFF files should also be able to store metadata.

s}
On Oct 24, 10:34 am, JDeats <Jeremy.De...@gmail.comwrote:
I have a binary file (zip file) that's being created by my app and I
would like to store a comma delimited list of items contained in that
file (e.g. the .zip file contains 5 large TIFF images and I want to
store the description of each image as meta data on the zip so I can
easily extract these descriptions to populate a drop down list).

For example:
Grand Canyon, Egypt at Night, SF Bridge,
would be the single text string I would I would like to store as meta
data.

I know Windows OS offers Summary info on files, but I need the meta
data to survive an ftp transfer up to a server and down to a clients
system and Windows file summary meta data does not.

So I'm looking for best approach recommendations, I'm trying to avoid
having to have the meta data in a separate xml file.

Oct 24 '07 #3
you could store the metadata in an ADS to the file. this file will be hidden
from users but tied to the original file so if the original file is deleted,
so will the ADS file.

hope this helps
--
-iwdu15
Oct 24 '07 #4

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

Similar topics

1
by: Useko Netsumi | last post by:
Does anyone aware of any program/apps/scripts that has the ability to modify/add/create/delete metadata in any image type such as JPEG, GIF, PNG, etc. Question for the experts, is it wise to...
1
by: Brett Selleck | last post by:
I would like to start collecting Metadata on my XML schemas. I have searched the web for a method of automatically extracting Metadata from an XSD file and have come up empty handed. Basically what...
1
by: Santhu | last post by:
What is the difference between METADATA and MANIFEST and where do they get stored? Thank you
1
by: Jonathan Gibbs | last post by:
I'm very new to xml, and struggling a bit.. I want to use an .xsd file passed to a windows application to define a dataset's schema, and also (if possible) pass other metadata associated with...
6
by: Dave H | last post by:
You'll have to excuse me if I don't know what I'm talking about, but I'm new to webservices. I'm attempting to compile a C# file with csc /r:dmcorex.dll...
2
by: Tomas Vera | last post by:
Hello All (This is being cross-posted to the C++ group), I've started receiving the subject message during a compile of a C++ based interface module used in my C# based WebApp. This module...
3
by: Daniel M | last post by:
I'm building a medium-scale data-entry web application, which involves creating data entry forms, record listings and detail screens for lots of database tables. Rather than designing a series...
2
by: EP | last post by:
I'm looking for a method by which to access Windows files metadata and have not been able to find anything in the standard modules or via Google - what is the standard approach? Shamefully I...
5
by: Ivo | last post by:
Hi, I need help with creating .txt and .doc files form c#. I know how to create these files so that they contain the text I want, but besides that text, I also need to write metadata (hope that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.