Visual Basic Examples

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

VB Examples

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

More Examples...
Amazon S3
Email Object
DKIM / DomainKey
NTLM
DH Key Exchange
DSA
FileAccess
RSS
Atom
Self-Extractor
Service
Bzip2
PPMD
Deflate
LZW


VB Strings
VB Byte Array

 

 

 

 

 

 

 

Add XMP Metadata to JPEG

Download Chilkat XML ActiveX

VB6 code showing how to add XMP metadata to a JPG that does not already contain embedded XMP metadata.

    ' Create an instance of the XMP ActiveX and unlock it.
    Dim xmp As New ChilkatXmp
    success = xmp.UnlockComponent("anything for 30 day trial")
    If (success = 0) Then
        MsgBox "Failed to unlock"
        Exit Sub
    End If
    
    ' Create a new XML document that looks like this:
    '
    ' <x:xmpmeta xmlns:x="adobe:ns:meta/">
    ' <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    ' </rdf:RDF>
    ' </x:xmpmeta>
    Dim xml As ChilkatXml
    Set xml = xmp.NewXmp()

    ' Add a simple property in the "photoshop" schema.
    xmp.AddSimpleStr xml, "photoshop:Headline", "This is the new headline"
    
    ' Load a JPG file without any embedded XMP info.
    success = xmp.LoadAppFile("cheese32.jpg")
     If (success = 0) Then
        MsgBox xmp.LastErrorText
        Exit Sub
    End If
   
    ' Add the XML to the XMP.
    xmp.Append xml
    
    ' Save the JPG, which now contains the XMP metadata.
    xmp.SaveAppFile "cheeseXmp.jpg"
    

 

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