MetaData from FLV - AS3

I am having trouble accessing the metadata from an flv on FMS 2.0. My script is ignoring my onMetaData function ever since I switched from a local FLV (which worked fine) to accessing the FLV using RTMP. This makes me think that I need to do something different with remote videos. Any ideas?
Thanks,
Ian

Thanks for the tip, but this article discusses Excel-ODBC connection and my issue is with MS Access.
My next try was to upgrade my database to 11.1.0.7 and now I'm getting a more detailed message when clicking on the "table" node in the import metadata wizard:
<ol><li>MS Office Database Module doesn't find the table 'ALL_SNAPSHOTS'</li>
<li>ORA-28506: parse error in data dictionary translation for an internal reference stored in sys.hs_all_dd</li>
<li>ORA-28559: FDS_CLASS_NAME is ODBC11.1.0.7.0_0006, FDS_INST_NAME is dg4odbc</li>
</ol>
Very strange ! Why does OWB ask a ODBC source.for ALL_SNAPSHOT. But even when selecting manually ALL_TABLES I'm getting an error. Btw, the ALL_SNAPSHOTS entry in HS_ALL_DD is empty.
So, I would like to get a statement if it's possible to read Access metadata at all. I found several examples with Excel in the Internet, but no mention of MS Access.
It's quite urgent because I have to demonstrate OWB to a customer on coming Friday and one of his sources is a MS Access database.
And I don't like to promise features which I can't deliver !!
Please help and regards
Thomas

Similar Messages

  • How to read metadata from a pdf file

    hello
    i have got xmp sdk for windows.
    i want to read the metadata from a pdf file but i cannot
    find a way to do so.
    i cannot understand that which method to use to open the file whose metadata i want to read.
    if someone can tell me by an little code example then it would be great help.
    thanks

    The sample XAPDumper read metadata in a file (PDF or not) if it is valide. If you want to keep the XAPMeta object, don't delete this object in ProcessSubstring().

  • I have 2 Macs - an iMac that holds my entire iPhoto library and a Mac Book Pro that I use to hold a subset of the main library - how can I transfer photos and their metadata from the main library of the iMac to my Mac Book?

    I have 2 Macs - an iMac which holds my main iPhoto library and a Mac Book Pro which holds a subset of the library. How can I transfer photos and their metadata from the main library to the smaller 1 on the Mac Book Pro?

    Link the two Macs together and use iPhoto Library Manager
    Regards
    TD

  • Removing EXIF and other Metadata from iPhoto 5 Library

    This post is intended for users who have upgraded to iPhoto5 and have suffered extensive slowdowns because of metadata that has accumulated in their iPhoto library, specifically in the Library.iPhoto file.
    This occurs if certain Pentax, Canon, and other digital cameras are used for pictures. Search this forum for "metadata" or "EXIF" or "makernote" (no quotes) for additional information about this issue.
    If you are affected by this issue and want to rid your iPhoto 5 library of this extra garbage, follow the steps below.
    1. Make two copies of your complete iPhoto Library folder and put them someplace else other than in the normal location. If something goes wrong, you'll have the backups. In any event, understand that if you follow these instructions, you are responsible for any problems, errors, or loss of photos. If you aren't prepared to take that responsibility, then do not read any further.
    2. Go to http://www.versiontracker.com and search for and download the free SmallImage application. Install it in your Applications folder.
    3. In your original iPhoto library, trash the Library.iPhoto file.
    4. Launch SmallImage by dragging your entire (ORIGINAL) iPhoto Library folder on top of SmallImage.
    5. There are 5 categories (checkboxes) of metadata (called profiles) that you can eliminate. I selected them all. Uncheck the "Recompress at quality:" checkbox. You don't want your photos altered. Uncheck the "Add Suffix" checkbox so that SmallImage will overwrite your photos with ones without the metadata. Select whether you want keep any custom file icons or not. Then, hold your breath and push the "Process Files" button in the SmallImage toolbar. If you have thousands of photos and/or a slow computer, it might take many hours.
    6. When SmallImage is finished, lauch iPhoto5, holding down the command/apple, option and shift keys. Before iPhoto fully loads, you'll be presented with the library rebuilding dialog box. Check ALL 4 options (especially the last one) and then allow iPhoto to rebuild the library. This also can take a very long time, depending on computer speed and the number of photos you have. When iPhoto is finished rebuilding the libary and reloading your photos, you'll have an iPhoto library without any the metadata that seems to be slowing it down. If you hold down the wrong keys and don't get the library rebuilding dialog box, don't panic. Quit iPhoto, and try it again. Your photos are still there.
    7. If you stay with your current camera (that is generating the metadata), manually transfer your picture files to your computer (but not directly into iPhoto) and use SmallImage to remove the metadata BEFORE you manually import them into iPhoto5.
    Hopefully, future versions of iPhoto5 will include an import option to strip metadata from photo files. If SmallImage can do it, why can't our favorite fruit company?
    Best of luck.
    12 inch 1.5Ghz Powerbook Mac OS X (10.4.3)
    12 1.5Ghz Powerbook   Mac OS X (10.3.9)  

    Link the two Macs together and use iPhoto Library Manager
    Regards
    TD

  • Powershell: How do I upload files with metadata from a manifest file?

    I am using the script from this blog to try to upload files into SharePoint, using a manifest file to specify the metadata associated with each file. Right now, the script works, but is not populating
    the metadata from the manifest (xml) file. When I write the $metadataManifest variable out to the console, I get the contents of my xml file, so the code is reading the file when it should. However when it gets to the line in bold ($metadataManifest.Columns.Column),
    it does not go into that block...it just skips on to checkin the file. Again the $metadataManifest variable shows all the content in my xml manifest file. Here is what the script looks like...
    #Get web and document library objects
    $web = Get-SPWeb "http://companySite"
    $Library = "My Library"
    $docLibrary = $web.Lists[$Library]
    $ManifestFilePath = "C:\PowerShellScripts\Manifest.xml"
    $LocalPath = "C:\Upload\Test Upload\My Upload Directory\"
    if ($ManifestFilePath)
    $metadataManifest = (Get-Content ($ManifestFilePath))
    write-host "Manifest file: " $metadataManifest
    else
    write-host "Manifest file not specified for categorising uploaded documents"
    #Check for the LibraryStartFolder parameter to specify a root folder
    if ($PSBoundParameters.ContainsKey('LibraryStartFolder')) {
    $folder = $web.GetFolder($docLibrary.Title + $LibraryStartFolder)
    else
    $folder = $docLibrary.RootFolder
    #Attach to local folder and enumerate through all files
    if($IncludeSubFolders) {
    $files = Get-ChildItem $LocalPath -Recurse
    else
    $files = Get-ChildItem $LocalPath
    $files | ForEach-Object {
    #Check if the object is a folder - if so, create it in doc library
    if ($_.PSIsContainer) {
    if (($IncludeSubFolders) -and (!$FlattenStructure)) {
    #Generate folder path for creation in SharePoint
    #by looking at the parent folder on the local path
    $spFolderPath = ($_.Parent.FullName.Replace($LocalPath,"")).Replace("\","/")
    #Get the folder into which the new folder will be created
    #by adding the folder path generated above, if one existed
    if ($spFolderPath -eq "") {
    $currentFolder = $web.GetFolder($folder.Url)
    else
    $currentFolder = $web.GetFolder($folder.Url + $spFolderPath)
    #Check to see if subfolder already exists
    #and create it if not
    $testFolder = $currentFolder.SubFolders[$_.Name]
    if ($testFolder -eq $null) {
    write-host "`nAdding folder" $_.Name "to" $docLibrary.Title "in" $web.Title "..." -foregroundcolor Green
    $newFolder = $currentFolder.SubFolders.Add($_.Name)
    else
    write-host "`nFolder" $_.Name "already exists in" $docLibrary.Title "and shall not be created" -foregroundcolor Red
    else
    #Generate file path for upload into SharePoint
    if ($FlattenStructure) {
    $spFilePath = ("/" + $_.Name)
    else
    $spFilePath = ($_.FullName.Replace($LocalPath,"")).Replace("\","/")
    $spFullPath = $folder.Url + "/" + $spFilePath
    #Check if the file exists and the overwrite option is selected before adding the file
    if ((!$web.GetFile($spFullPath).Exists) -or ($Overwrite)) {
    #Add file
    write-host "`nCopying" $_.Name "to" $spFullPath.Replace("/" + $_.Name,"") "in" $web.Title "..." -foregroundcolor Green
    $spFile = $folder.Files.Add($spFullPath, $_.OpenRead(), $true)
    #$spFile = $folder.Files.Add($folder.Url + "/" + $file.Name, [System.IO.Stream]$fileStream, $true)
    $spItem = $spFile.Item
    #Walk through manifest XML file and configure column values on the file
    $metadataManifest.Columns.Column | ForEach-Object {
    #Single value text columns
    try
    if (($_.Type -eq "Text") -or
    ($_.Type -eq "Choice") -or
    ($_.Type -eq "Boolean") -or
    ($_.Type -eq "Number") -or
    ($_.Type -eq "Currency")) {
    $columnName = $_.Name
    write-host "Setting value on column"$columnName "..." -foregroundcolor Blue
    $_.Values.Value | ForEach-Object {
    $spItem[$columnName] = $_
    write-host "Value set to"$_
    catch {}
    #Multiple line text column
    try
    catch {}
    #Multiple choice columns
    try
    catch {}
    #Hyperlink columns
    try
    catch {}
    #Single User column
    try
    catch {}
    #Multiple User column
    try
    catch {}
    #Single value Managed Metadata column
    try
    catch {}
    #Multi value Managed Metadata column
    try
    catch {}
    #Update document with new column values
    $spItem.SystemUpdate($false)
    #Check in file to document library (if required)
    #MinorCheckIn=0, MajorCheckIn=1, OverwriteCheckIn=2
    if ($CheckIn) {
    if ($spFile.CheckOutStatus -ne "None") {
    $spFile.CheckIn("File copied from " + $filePath, 1)
    write-host $spfile.Name"checked in"
    #Approve file (if required)
    if ($Approve) {
    if ($spItem.ListItems.List.EnableModeration -eq $true) {
    $spFile.Approve("File automatically approved after copying from " + $filePath)
    if ($spItem["Approval Status"] -eq 0) { write-host $spfile.Name"approved" }
    else
    write-host "`nFile"$_.Name "already exists in" $spFullPath.Replace("/" + $_.Name,"") "and shall not be uploaded" -foregroundcolor Red
    $web.Dispose()
    And here is what the manifest file looks like...
    <?xml version="1.0" encoding="utf-8"?>
    <Columns>
    <Column Name="Column1" Type="Text">
    <Values>
    <Value>First File</Value>
    </Values>
    </Column>
    <Column Name="Column2" Type="Text">
    <Values>
    <Value>12585</Value>
    </Values>
    </Column>
    <Column name="Column3" type="Text">
    <Values>
    <Value>Some Data</Value>
    </Values>
    </Column>
    <Column name="Column4" type="Text">
    <Values>
    <Value>More Data</Value>
    </Values>
    </Column>
    </Columns>
    <Columns>
    <Column Name="Column1" Type="Text">
    <Values>
    <Value>Second File</Value>
    </Values>
    </Column>
    <Column Name="Column2" Type="Text">
    <Values>
    <Value>9876</Value>
    </Values>
    </Column>
    <Column name="Column3" type="Text">
    <Values>
    <Value>Some Data2</Value>
    </Values>
    </Column>
    <Column name="Column4" type="Text">
    <Values>
    <Value>More more Data</Value>
    </Values>
    </Column>
    </Columns>
    I can't figure out what am doing wrong...why my script is not iterating through the manifest file to upload the document along with the metadata. I would really appreciate any help. Thanks

    Hi Spawn,
    Name should not be a problem.. I will probably post you the entire code (I modified it to meet your goals for having multiple column xml nodes as well)
    For the code snippet below:
    a. In powershell all my changes will have ## prefixed comments
    b. in XML I have changed one column name to "Name" to replicate your case and also added a parent node for making the xml well formed.
    and the SharePoint output
    Please see the code below
    $web = Get-SPWeb "http://intranet/sites/test"
    $Library = "My Library"
    $docLibrary = $web.Lists[$Library]
    $ManifestFilePath = "D:\Manifest.xml"
    $LocalPath = "D:\UploadPath\"
    if ($ManifestFilePath)
    ##read the xml file as an xml object
    [xml]$metadataManifest = (Get-Content ($ManifestFilePath))
    write-host "Manifest file: " $metadataManifest
    else
    write-host "Manifest file not specified for categorising uploaded documents"
    #Check for the LibraryStartFolder parameter to specify a root folder
    if ($PSBoundParameters.ContainsKey('LibraryStartFolder')) {
    $folder = $web.GetFolder($docLibrary.Title + $LibraryStartFolder)
    else
    $folder = $docLibrary.RootFolder
    #Attach to local folder and enumerate through all files
    if($IncludeSubFolders) {
    $files = Get-ChildItem $LocalPath -Recurse
    else
    $files = Get-ChildItem $LocalPath
    $counter=0
    $files | ForEach-Object {
    #Check if the object is a folder - if so, create it in doc library
    if ($_.PSIsContainer) {
    if (($IncludeSubFolders) -and (!$FlattenStructure)) {
    #Generate folder path for creation in SharePoint
    #by looking at the parent folder on the local path
    $spFolderPath = ($_.Parent.FullName.Replace($LocalPath,"")).Replace("\","/")
    #Get the folder into which the new folder will be created
    #by adding the folder path generated above, if one existed
    if ($spFolderPath -eq "") {
    $currentFolder = $web.GetFolder($folder.Url)
    else
    $currentFolder = $web.GetFolder($folder.Url + $spFolderPath)
    #Check to see if subfolder already exists
    #and create it if not
    $testFolder = $currentFolder.SubFolders[$_.Name]
    if ($testFolder -eq $null) {
    write-host "`nAdding folder" $_.Name "to" $docLibrary.Title "in" $web.Title "..." -foregroundcolor Green
    $newFolder = $currentFolder.SubFolders.Add($_.Name)
    else
    write-host "`nFolder" $_.Name "already exists in" $docLibrary.Title "and shall not be created" -foregroundcolor Red
    else
    #Generate file path for upload into SharePoint
    if ($FlattenStructure) {
    $spFilePath = ("/" + $_.Name)
    else
    $spFilePath = ($_.FullName.Replace($LocalPath,"")).Replace("\","/")
    $spFullPath = $folder.Url + "/" + $spFilePath
    #Check if the file exists and the overwrite option is selected before adding the file
    if ((!$web.GetFile($spFullPath).Exists) -or ($Overwrite)) {
    #Add file
    write-host "`nCopying" $_.Name "to" $spFullPath.Replace("/" + $_.Name,"") "in" $web.Title "..." -foregroundcolor Green
    $spFile = $folder.Files.Add($spFullPath, $_.OpenRead(), $true)
    #$spFile = $folder.Files.Add($folder.Url + "/" + $file.Name, [System.IO.Stream]$fileStream, $true)
    $spItem = $spFile.Item
    ## ensure we pick the corresponding node in the columns xml (first file, first xml node, second file - second node likewise)
    #Walk through manifest XML file and configure column values on the file
    $metadataManifest.FileData.Columns[$counter].Column | ForEach-Object {
    #Single value text columns
    try
    if (($_.Type -eq "Text") -or
    ($_.Type -eq "Choice") -or
    ($_.Type -eq "Boolean") -or
    ($_.Type -eq "Number") -or
    ($_.Type -eq "Currency")) {
    $columnName = $_.Name
    write-host "Setting value on column"$columnName "..." -foregroundcolor Blue
    $_.Values.Value | ForEach-Object {
    $spItem[$columnName] = $_
    write-host "Value set to"$_
    catch {}
    #Multiple line text column
    try
    catch {}
    #Multiple choice columns
    try
    catch {}
    #Hyperlink columns
    try
    catch {}
    #Single User column
    try
    catch {}
    #Multiple User column
    try
    catch {}
    #Single value Managed Metadata column
    try
    catch {}
    #Multi value Managed Metadata column
    try
    catch {}
    #Update document with new column values
    $spItem.SystemUpdate($false)
    ##increment the counter to read the next xml node
    $counter++
    #Check in file to document library (if required)
    #MinorCheckIn=0, MajorCheckIn=1, OverwriteCheckIn=2
    if ($CheckIn) {
    if ($spFile.CheckOutStatus -ne "None") {
    $spFile.CheckIn("File copied from " + $filePath, 1)
    write-host $spfile.Name"checked in"
    #Approve file (if required)
    if ($Approve) {
    if ($spItem.ListItems.List.EnableModeration -eq $true) {
    $spFile.Approve("File automatically approved after copying from " + $filePath)
    if ($spItem["Approval Status"] -eq 0) { write-host $spfile.Name"approved" }
    else
    write-host "`nFile"$_.Name "already exists in" $spFullPath.Replace("/" + $_.Name,"") "and shall not be uploaded" -foregroundcolor Red
    $web.Dispose()
    and the xml file
    <?xml version="1.0" encoding="utf-8"?>
    <FileData>
    <Columns>
    <Column Name="Name" Type="Text">
    <Values>
    <Value>First File</Value>
    </Values>
    </Column>
    <Column Name="Column2" Type="Text">
    <Values>
    <Value>12585</Value>
    </Values>
    </Column>
    <Column name="Column3" type="Text">
    <Values>
    <Value>Some Data</Value>
    </Values>
    </Column>
    <Column name="Column4" type="Text">
    <Values>
    <Value>More Data</Value>
    </Values>
    </Column>
    </Columns>
    <Columns>
    <Column Name="Name" Type="Text">
    <Values>
    <Value>Second File</Value>
    </Values>
    </Column>
    <Column Name="Column2" Type="Text">
    <Values>
    <Value>12585</Value>
    </Values>
    </Column>
    <Column name="Column3" type="Text">
    <Values>
    <Value>Some Data</Value>
    </Values>
    </Column>
    <Column name="Column4" type="Text">
    <Values>
    <Value>More Data</Value>
    </Values>
    </Column>
    </Columns>
    <Columns>
    <Column Name="Name" Type="Text">
    <Values>
    <Value>Third File</Value>
    </Values>
    </Column>
    <Column Name="Column2" Type="Text">
    <Values>
    <Value>12585</Value>
    </Values>
    </Column>
    <Column name="Column3" type="Text">
    <Values>
    <Value>Some Data</Value>
    </Values>
    </Column>
    <Column name="Column4" type="Text">
    <Values>
    <Value>More Data</Value>
    </Values>
    </Column>
    </Columns>
    <Columns>
    <Column Name="Name" Type="Text">
    <Values>
    <Value>Fourth File</Value>
    </Values>
    </Column>
    <Column Name="Column2" Type="Text">
    <Values>
    <Value>12585</Value>
    </Values>
    </Column>
    <Column name="Column3" type="Text">
    <Values>
    <Value>Some Data</Value>
    </Values>
    </Column>
    <Column name="Column4" type="Text">
    <Values>
    <Value>More Data</Value>
    </Values>
    </Column>
    </Columns>
    <Columns>
    <Column Name="Name" Type="Text">
    <Values>
    <Value>Fifth File</Value>
    </Values>
    </Column>
    <Column Name="Column2" Type="Text">
    <Values>
    <Value>12585</Value>
    </Values>
    </Column>
    <Column name="Column3" type="Text">
    <Values>
    <Value>Some Data</Value>
    </Values>
    </Column>
    <Column name="Column4" type="Text">
    <Values>
    <Value>More Data</Value>
    </Values>
    </Column>
    </Columns>
    </FileData>
    Thanks and Regards,
    Partha
    AvePoint

  • How do you import media and metadata from Windows Photo Gallery database?

    How do you import videos and photos and their metadata from a Windows Photo Gallery database into the Elements Organizer, especially metadata that is only contained in the Photo Gallery database file (pictures.pd6) and not embedded in the video and photo media files themselves?
    And when you import the metadata into Organizer, do you get all of these available elements?
    Ratings
    Tags
    Captions
    People tags
    Geotags
    Also, if the media files in Organizer are ever moved to another PC, is there a way to migrate all of the Organizer's metadata with the files to use with another instance of Premiere Elements?

    OK.  I think we're getting close to the answer.
    The reason I'm asking about this is because for Photo Gallery, media files can NEVER be moved without losing all database metadata.        I'm sorry I didn't know this when I started with Photo Gallery and I think I've learned an important lesson:  Be sure you can move your work BEFORE you start.
    So, to clarify Organizer's behavior, let me ask the question another way.  Let's say that in a few years, after I've added tags, people, places, etc. to hundreds of media files in Organizer, I decide to get a new PC.   When I move all that stuff to my new petabyte drive on the new PC, do we know if Premiere Elements Organizer on the new PC would be able to read the original Organizer's metadata?

  • CS6 Mac- How to disable metadata from showing in web gallery???

    Does anyone have a way to stop metadata from displaying in my web gallery main image display? I am trying to create a simple html web gallery of some images from within Bridge output module. Thumbnails look ok, but when I click on one and get the large image, at the bottom of the page it is displaying all sorts of info that I don't want showing!
    There does not seem to be any way of turning this off.
    I am on a mac 10.9.5, Bridge CS6
    Your help appreciated.
    Jonathan

    Hi Philip,
    Thanks so much for you reply.
    I think part of my problem is that I was working from Nikon RAW files and converting those to a web gallery. It's been a while since I made a gallery in Bridge, but as I recall now I used to shoot RAW + JPG and use the jpg images for output to web gallery.
    I just did this your way and it worked fine. I never used the Export menu before. Does it automatically default to JPG? I don't see any options to do tiff, PSD etc. Obviously jpg is what I need for web, but wondered if output file kind could be changed in export somewhere. I suppose this is what Actions are for. Adobe could make this simpler by having a check-box in the Web output that gives the option of including metadata or not.
    Anyway thanks for your help. I really appreciate it. Been hitting my head against the wall about this.
    Jonathan

  • How to re-read metadata from file in Photoshop Elements 11 Organizer?

    I am currently testing Lightroom 4 and Photoshop Elements 11 as a replacement for my old softwarestack due to a new DSLR.
    In Lightroom I can read and write metadata directly from/to file. In Photoshop Elements Organizer I have found an option to write tags to files, but none to re-read the metadata after the files has been imported to the catalog.
    I would like to use Lightroom as primary organizer for import/tagging/basic corrections. But Lightroom does not have some nifty things like face/person recognition and SmartTags, so I need the Photoshop Elements Organizer to do that. The target workflow would be:
    DSLR -> Import to -> Lightroom -> tagging -> basic corrections -> write tags to file in Lightroom -> import to PSE organizer -> person recognition -> smart tags -> image edits -> write tags to files in PSE organizer ==> tags can now be re-read in Lightroom, so I get the PSE organizer changes to Lightroom.
    And that is the problem: If changes were made after this workflow in Lightroom, PSE Organizer does not know that until I can re-read the metadata from the files. If I press "write tags to file" in PSE organizer all newer Lightroom tags will be overwritten with the old tags from PSE organizer.
    Does anyone knows a solution for this problem? Or should I file a feature request for both programs?

      You can now do a lot more in the metadata panel in PSE 11. If you select a thumbnail in Organizer and click the three small dots it will bring up a dialog for the metadata fields. To add information to many photos all at once, select all the thumbnails, click the information tab and then click the button marked Add IPTC information. You can then choose to append new information to all of the selected items or to overwrite.
    See image below

  • Can't parse XMP metadata from files

    Hello,
    I am currently having troubles reading custom metadata from a file.
    I wrote a really simple test case to show you that, maybe I'm doing something wrong...
    Writing a simple property :
    static const char * kNS1 = "ns:test1/";
    void Foo::writeSimple()
        if( !SXMPMeta::Initialize() )
            LOGIT( LOG_ERROR, "Could not initialize XMP toolkit!" );
            return;
        // custom schema
        std::string actualPrefix;
        bool ret = SXMPMeta::RegisterNamespace( kNS1, "ns1", &actualPrefix );
        XMP_OptionBits options = 0;
        // Must initialize SXMPFiles before we use it
        if ( !SXMPFiles::Initialize( options ) )
            LOGIT( LOG_ERROR, "Could not initialize SXMPFiles!");
            return;
        try
            SXMPMeta meta;
            std::string value;
            meta.SetProperty( kNS1, "name", "value" );
            // just to check the property gets actuelly written in meta
            bool exists = meta.GetProperty( kNS1, "name", &value, 0 );
            std::cout << "writeRead: " << value << std::endl; // output is ok
            // Options to open the file with - open for editing and use a smart handler
            XMP_OptionBits opts = kXMPFiles_OpenForUpdate | kXMPFiles_OpenUseSmartHandler;
            std::string status = "";
            // First we try and open the file
            bool ok = p_private->m_file.OpenFile( "Collines.jpg", kXMP_UnknownFile, opts );
            // Check we can put the XMP packet back into the file
            if( p_private->m_file.CanPutXMP( meta ) )
                    // If so then update the file with the modified XMP
                    p_private->m_file.PutXMP( meta );
            else
                LOGIT( LOG_ERROR, "PutXMP: cannot put XMP" );
            p_private->m_file.CloseFile();
            SXMPFiles::Terminate();
            SXMPMeta::Terminate();
        catch( XMP_Error& e )
            LOGIT( LOG_EXCEPTION, "writeSimple: " + std::string(e.GetErrMsg()) );
    Reading the property:
    void Foo::readSimple()
        if( !SXMPMeta::Initialize() )
            LOGIT( LOG_ERROR, "Could not initialize XMP toolkit!" );
            return;
        // custom schema
        std::string actualPrefix;
        bool ret = SXMPMeta::RegisterNamespace( kNS1, "ns1", &actualPrefix );
        XMP_OptionBits options = 0;
        // Must initialize SXMPFiles before we use it
        if ( !SXMPFiles::Initialize( options ) )
            LOGIT( LOG_ERROR, "Could not initialize SXMPFiles!");
            return;
        try
            // Options to open the file with - open for editing and use a smart handler
            XMP_OptionBits opts = kXMPFiles_OpenForUpdate | kXMPFiles_OpenUseSmartHandler;
            std::string status = "";
            // First we try and open the file
            bool ok = p_private->m_file.OpenFile( "Collines.jpg", kXMP_UnknownFile, opts );
            // Check we can put the XMP packet back into the file     
            SXMPMeta meta;
            std::string xmpPacket;
            XMP_PacketInfo packetInfo;
            ok = p_private->m_file.GetXMP( &meta, &xmpPacket, &packetInfo );
            std::cout << "DBG: getXMP: " << xmpPacket << std::endl; // output is ok, I can see what I wrote before
            std::string value;       
            bool exists = meta.GetProperty( kNS1, "name", &value, 0 ); // returns false...
            std::cout << "writeRead: " << value << std::endl; // nothing in value
            p_private->m_file.CloseFile();
            SXMPFiles::Terminate();
            SXMPMeta::Terminate();
        catch( XMP_Error& e )
            LOGIT( LOG_EXCEPTION, "readSimple: " + std::string(e.GetErrMsg()) );
    Do you have any idea?
    Thanks in adavance!
    Chris.

    Hello? No one has any idea?

  • [CS2, JS] Extracting Metadata from Images

    I have to place about 100 images into a document and label them with metadata from the images (Description and author)
    I'm happy just for the data to be pulled from the image and placed in a text frame over the image - i can reposition it later.
    any suggestions on how to go about this - or where to start on a script to do it?

    Look at Olav's script called LabelGraphics.jsx
    Loic

  • How do I bulk upload documents using PowerShell and extract metadata from file name?

    I have a requirement to upload a bunch of documents into a document library. Based on the content type, the rules of updating the metadata is different...the one giving me trouble is to extract the metadata from the file name. If I have a file name like
    "part1_part2_part3.pdf" how do I extract part1, part2, part3 and tag each document being uploaded into SharePoint, using PowerShell? I have searched and have not been able to find anything to get me started.
    Has anyone done this before? Or is there a blog I can take a look at? Thanks
     

    You will have to write a PS script encompassing this logic.
    Read files from the folder using
    Get-Item cmdlet
    Determine the content type based on the path or filename.
    Split the file name to extract the tag names.
    If the metadata fields in the content type is a managed metadata field, check whether the term exists and set it.
    Updating SharePoint Managed Metadata Columns
    with PowerShell
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Bug: Keywords behave incorrectly after "Read Metadata from File"

    (Happens in LR3.4 RC and probably also in previous versions... but I am not sure if it happened in LR2)
    The problem seems tro be somthing like de-sync of database status and what we see on the screen.
    1) Let's say we have a photo with keyword "abc"
    2) Click in the Keyword List on the arrow around the "abc" keyword to show only photos with this keyword (single one), leave the filter on this settings
    2) Save Metadata to File
    3) Edit XMP in an external application, add new keyword "def"
    4) Read Metadate from File
    5) Now what happens is: The photos disappers from the screen as if it lost the "abc" keyword (weird), but if you look at the Keyword List, the "abc" keyword has still 1 photo attached to it. Also, if you release the filter and find the photo, it clearly has the "abc" and "def" keywords in the Keywording panel. And you can search for this keyword in the text filter (works correctly), but if you click on the arrow around the "abc" keyword, the photo is not shown.
    6) If you restart the Lightroom, it will work correctly again.
    I have an own application that is able to modify the XMP and the modifications may not be perfect, but in my opinion, this shouldn't happen when reading the metadata. If any developer is reading this, I can supply a file with original and changed metadata for debugging.
    It would be great it this could be resolved.
    Thanks!

    Please do report your find with the details you state (well done!) here: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Thanks.........

  • C++ code to get XMP metadata from pdf files ??

    Hi,
    I am new to this field and now I have to write a C++ code which will read the XMP metadata from any pdf files. Could anyone please tell me how to do that or where to start? Is there any sample code available for that?
    I am reading the Programmer's guide and XMP specification to have the whole idea.
    I really appriciate your help. Thanks in advance.
    Regards,
    Suranjit Paul

    Hi,
    The same code for reading other formats will go for Pdf too.
    Only difference is while reading PDF it is not calling any smart filters.

  • Aperture Not Displaying Altitude Metadata from Camera

    My camera records GPS data including Lat, Long and Altitude. When I import my images into Aperture 3.5.1, the metadata shows the Lat and Long information but Altitude shows up as 0m.
    I know for sure that my camera is recording the altitude information because when I use the OEM software supplied with the camera I can see the altitude data in the JPEG file.
    It also appears that when I import photos into Aperture with GPS data it seems to strip the altitude metadata from the file.
    I saw a similar question asked previously: Is this a bug in Aperture that it will not read/accept Altitude metadata from certain cameras?

    Is the altitude stired in the EXIF tags?
    When I import image files with EXIF tags for GPS, I will see in Aperture all tags, that are also visible in Preview. For example, in Preview:
    And after importing into Aperture:
    I have never seen Aperture stripping EXIF data from the original image files, only not displaying EXIF tags, that are camera specific. But the EXIF tag "Altitude" is always displayed correctly in my library, if it is set. I suspect, that your camera is using a different tag, so the camera software understands it. So, as a test, check, if Preview can show this tag.
    -- Léonie

  • Error when Reversing metadata from HFM

    Hi,
    I'm getting this error when i try to reverse metadata from HFM.
    "com.hyperion.odi.common.ODIHAppException: Error occurred while loading driver."
    I already try the suggestion in this forum including
    Cause
    The Java Library Path of the HFMDriver.dll is missing in Wrapper configuration file.
    Solution
    1. Backup and edit the ODI_HOME\tools\wrapper\conf\snpsagent.conf and include the following entry in Java Library Path section :
    wrapper.java.library.path.2=../drivers
    After adding it will look as follows:
    # Java Library Path (location of Wrapper.DLL or libwrapper.so)
    wrapper.java.library.path.1=../tools/wrapper/lib/
    wrapper.java.library.path.2=../drivers
    Note: HFMDriver.dll is usually present in <odi_home>\oracledi\drivers folder. If it is located in different path, then appropriate location should be referred. Also numbering convention like wrapper.java.library.path.1, wrapper.java.library.path.2 has to be in a incremental manner and no duplicates nor gaps should exist.
    2. Save the file and recreate the ODI Agent Service with the new configuration parameters as the classes are loaded during its creation and re-test the issue.
    But it still errors. Does anyone know another solution?
    Btw, i'm using ODI 10.1.3.5, and the HFM's version 9.3.1
    Those two are not on the same machine. And i've already installed HFM Client on ODI Machine.
    Thanks in advance.

    Ok, i've solved the problem above. Looks like i forgot to define driver folder in PATH variable.
    But now i got another error.
    Looks like the problem lies in HFM now.
    It's said that Server/Cluster incorrectly configured. But, in my HFMClient i've successfully access the application.
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 38, in ?
    com.hyperion.odi.common.ODIHAppException: Error occurred in driver while connecting to Financial Management application [KALBEAPP] on [HFMTest] using user-name [adm].
         at com.hyperion.odi.hfm.ODIHFMAppConnection.<init>(ODIHFMAppConnection.java:58)
         at com.hyperion.odi.hfm.ODIHFMAppReverser.connect(ODIHFMAppReverser.java:27)
         at com.hyperion.odi.common.ODIModelImporter.importModels(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
         at org.python.core.PyMethod.__call__(PyMethod.java)
         at org.python.core.PyObject.__call__(PyObject.java)
         at org.python.core.PyInstance.invoke(PyInstance.java)
         at org.python.pycode._pyx0.f$0(<string>:38)
         at org.python.pycode._pyx0.call_function(<string>)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyCode.call(PyCode.java)
         at org.python.core.Py.runCode(Py.java)
         at org.python.core.Py.exec(Py.java)
         at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Caused by: com.hyperion.odi.hfm.wrapper.HFMException: Error occurred in driver while connecting to Financial Management application [KALBEAPP] on [HFMTest] using user-name [adm].
         at com.hyperion.odi.hfm.wrapper.HFMConnection.<init>(HFMConnection.java:57)
         at com.hyperion.odi.hfm.wrapper.HFMServer.getConnection(HFMServer.java:89)
         at com.hyperion.odi.hfm.ODIHFMAppConnection.<init>(ODIHFMAppConnection.java:52)
         ... 33 more
    Caused by: com.hyperion.odi.hfm.wrapper.HFMException: Opening HFM application failed. Error code: 0x80041143 [Server/Cluster is incorrectly configured. Please reconfigure your Cluster or Server connection.]
         at com.hyperion.odi.hfm.wrapper.HFMDriverJNI.getConnection(Native Method)
         at com.hyperion.odi.hfm.wrapper.HFMConnection.<init>(HFMConnection.java:51)
         ... 35 more
    com.hyperion.odi.common.ODIHAppException: com.hyperion.odi.common.ODIHAppException: Error occurred in driver while connecting to Financial Management application [KALBEAPP] on [HFMTest] using user-name [adm].
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Thanks in advance...

Maybe you are looking for

  • Can't update or restore my ipod - please help

    It only seems that i can synch my ipod when i plug it in when windows loads up. Itunes automatically loads up and my ipod synchs. But then if later i want to synch again as i have added new stuff it won't. When i try to restore it to the factory sett

  • How to remove multiple Birthdays in Calander in icloud com

    How can I remove the multiple Birthday per person from iCloud Calendar on my PC

  • Receiving a call from saved number but not showing the name

    I have problem with my contacts, after upgrading the IOS to IOS 5.0 I found this issue: I have some of the contacts which their numbers saved on the phone book and when they call me their name doesn't show and it shows only the number. I tries to mak

  • Fscommand("exec".... substitute???

    I feel like ahab chasing moby dick. I am trying to create a flash projector program that sends variables to an external program (which is priadoblender-compiled php) i thought fscommand("exec", userReg.exe + var1 + var2 + var3 + var4) would work beca

  • Problem with RSC card on sun fire v490

    Hi all, I have a little problem. I got few v490 that were already used. When I connect to the management port of the RSC card I get the prompt of the RSC password, somthing i don't have. The OS doesn't get loaded and I can't do anything. ( if I had a