473,666 Members | 2,258 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 10009
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.co m

"JDeats" <Je**********@g mail.comwrote in message
news:11******** **************@ q3g2000prf.goog legroups.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...@g mail.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
4030
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 store information in the image file instead of the database? Thanks
1
2782
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 I am looking for is a VB Script or J Script that parses an XSD file and outputs the metadata in a structured format. For examle: Given this simple Schema below I would like to see the following. Schema: <?xml version="1.0" encoding="UTF-8"?>
1
8689
by: Santhu | last post by:
What is the difference between METADATA and MANIFEST and where do they get stored? Thank you
1
2937
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 given elements of the schema (tables and columns) that the application also requires. I've guessed that Annotations are a way to do this, so added <xs:annotation> elements to the xsd file (see example below). I can set up the dataset fine:
6
10299
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 C:\InetPub\wwwroot\asptest\mtm\OBWebSvc.asmx.cs. dmcorex is in a using statement in the file 'using dmcorex;'. After running this I get the following error: 'c:\WINNT\Microsoft.NET\Framework\v2.0.40607\dmcorex.dll' could not beopened -- 'There isn't metadata in the memory or stream' ...
2
2523
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 exposes some functions from our main Windows DLL to my web app. I get the same error message whether I compile from the IDE or from our normal command line based build process. What database file does the message refer to?
3
2758
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 of similar web pages for each table I'm looking into recording metadata about tables / columns in the database and using this to determine presentation. Let's keep things simple for now and assume that I'm interested in adding more user friendly...
2
8790
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 really do not understand Windows file system - e.g. is properties metadata attached to the file? if I change that metadata do I change the file's hash? how is the metadata structured? or is the "properties" metadata simply derived upon access? ...
5
6536
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 the term is right) to these files. That means that I have a string 'title', a string 'author' and a string 'date' that I need to "attach" to the file. Off course, these information (title, author and date) should not be written "into the file", but...
0
8443
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8781
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7385
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6192
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4366
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2769
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.