retrieving illustrations from Multiterm .sdltb file

Anonymous
Offline Anonymous

Hello to everyone,

I have currently a problem trying to retrieve image content from a multiterm file.

I get the xml string,as described in the APi documentation

foreach (HitTerm Hit in Hits)
                {
                    int indexID = Int32.Parse(Hit.ParentEntryID);
                    Entry resultEntry = entryCollection.Item(indexID);

                    string xmlString = resultEntry.Content.Content;

                     XmlDocument doc = new XmlDocument();
                    doc.LoadXml(xmlString);

                 }

and I would like to know how it could be possible to retrieve any images from there.

Thank you in advance.

Regards

Nikos

  • Hi Nikos,

    You cannot perform this via the public API.  You might use a workflow of;

    1. Export entries to create a folder with the images.  

    2. The field values for images are just file names, the media is exported to a folder with those file names - "media_<export file name>".

    3. Process the images.

    4. Import (using a definition that synchronises on entry ID and overwrites existing entries.

    Regards, Ian

    Ian Davies  |  Senior Product Manager | SDL | Language Technologies Division |  +44 7826843819

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub