Author Topic: Format to extract RTF Style Template with images  (Read 2428 times)

Michael Proske

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Format to extract RTF Style Template with images
« on: December 22, 2011, 11:15:36 pm »
Hello

I have written an short extension to EA which exports ans extracts the RTF Templates from an EAP File and also pack and import it back to the database.

This works fine until the RTF Template contains images. To explain what i am doing i read the table t_documents for all with element type SSDOCSTYLE. Then i read the blob field binContent in the row and save the binary stream to a file. The file is a zip file. Then i extract the file inside the zip into a text file. The file is in UTF Format. In this file included is the rtf as an base64encoded string that i extract decode and save as rtf. The way back is the same but the problem occurs durcing decoding.

With rtf files without images these method and the export method of the editor have the same results. The files are identical. But with images inside the result differs and i have no idea why.

Does anyone has an idea how images are encoded maybe one of the admins here.

Regards Michael