C# Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

C# Examples

Bounced Mail
Bz2
Character Encoding
CSV
DKIM / DomainKey
Digital Certificates
Digital Signatures
Email
Email Object
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
MIME
POP3
RSA
S/MIME
SMTP
Socket
Spider
SSH
SSH Tunnel
SSH Key
SFTP
Tar Archive
Upload
XML
XMP
Zip Compression


More Examples...
Amazon S3
NTLM
FileAccess
RSS
Atom
String
Byte Array
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA
Bzip2
LZW

 

 

 

 

 

 

Extract XMP MetaData as XML

Demonstrates how to open a JPG or TIF image file and extract the XMP metadata as XML.

Download: Chilkat .NET Assemblies

Chilkat.Xmp xmp = new Chilkat.Xmp();

bool success;

success = xmp.UnlockComponent("Anything for 30-day trial.");
if (success != true) {
    MessageBox.Show(xmp.LastErrorText);
    return;
}

//  Load a JPG or TIF image file.
//  Sample JPG's with XMP metadata may be found at:
//  http://www.chilkatsoft.com/testData/xmp/sample1.jpg
//  http://www.chilkatsoft.com/testData/xmp/sample2.jpg
//  http://www.chilkatsoft.com/testData/xmp/sample3.jpg
success = xmp.LoadAppFile("sample1.jpg");
if (success != true) {
    MessageBox.Show(xmp.LastErrorText);
    return;
}

textBox1.Text += "Num embedded XMP docs: " + xmp.NumEmbedded + "\r\n";

//  Assuming there is at least one, get the 1st.
//  (There is typically never more than one, but theoretically it's possible.)
Chilkat.Xml xml = null;
xml = xmp.GetEmbedded(0);
if (!(xml == null )) {
    success = xml.SaveXml("xmpMetaData.xml");
    if (success != true) {
        MessageBox.Show(xml.LastErrorText);
    }

    MessageBox.Show("Success.");

}
else {
    MessageBox.Show(xmp.LastErrorText);
}


 

© 2000-2012 Chilkat Software, Inc. All Rights Reserved.

Email Component · XML Parser