2 Replies Latest reply on Jun 6, 2012 1:53 AM by [Jongware]

    What's contents encrypt code of embedded image in IDML file?

    Ryan_Zhang

      Hi guys,

       

      Does anyone has idea what's contents encrypt code of embedded image in IDML file?

       

      I want to use C# to get the binary data of contents and save it as image. But it seems to me it's not using Base64.

       

      How can i translate the contents to image?

       

      Thanks in advacne.

       

      Here is the sample file.

       

       

       

       

      <Image Self="uda" Space="$ID/#Links_RGB" ActualPpi="96 96" EffectivePpi="96 96" ImageRenderingIntent="UseColorSettings" LocalDisplaySetting="Default" ImageTypeName="$ID/Portable Network Graphics (PNG)" AppliedObjectStyle="ObjectStyle/$ID/[None]" ItemTransform="1 0 0 1 -159.0221922373429 -106.13981227162273" GradientFillStart="0 0" GradientFillLength="0" GradientFillAngle="0" GradientFillHiliteLength="0" GradientFillHiliteAngle="0" Visible="true" Name="$ID/">

       

      - <Properties>

       

       

      <Profile type="string">$ID/None</Profile>

       

       

      - <Contents>

       

      - <![CDATA[

      iVBORw0KGgoAAAANSUhEUgAAAagAAAEbCAYAAACP7BAbAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAP+lSURBVHhe7F0FmFRX1iRKBI8nu/+6u2SzcXcj 7u4hTiAhuLu7u9ugY8wM4+7u7u7DIPVX3e43NJOBhgAbg+87tLzW6fde3TqnTp1OOPPvzF/gzF/g zF/gzF/gzF/gO/gX6JRVdRCK7OpD9jiAnJqDyK89dEQU1B2EYxTWHkRR3aGjRnHDQZQ0HjpqlHOb Y1Q0AaczKpsBx6hqARyj/Xbrdttnaj6IypZDqNoHVLcCdQcOoeEA0HgQaGHwbuw3cQgHGc7+HeRD jhn219FrHc/rOXu/jrbrdVv5Ofbxg+h7NPA71e4/yO+4HxWtB1HG76zfUL+z9oeCOqCw/hDjAI71 +5byt3QWZfw9TmeU8/c9VpzO99ZrO9uXnb3/0fbHU3W/s893ure3P/5P/W3+/o2Ho/25qLgeZt/W ++pvWs2DuJbH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Zm2M3dEPEaAWe2ZjyZ4crPDJxWq/AqwNKML6oBK4BJdie2gpXMMr4B5ZBY+o auyJroZXTA28Y2vhHV8Hn4R67E1sgF8yAS2lEQGpTfZogH9WPUGuzkRAZi1CeDuUyf6w7DqEEinC eV9kdj2icxsRkWu/n2gQlluPiPxGs82KqJwG87iYvKa2iM3fD8eIyWvltsMRV9AKRTyZYEcRW9IK RRyBVWnOxGJbJJUcMKGUp0Lpz6TSFiSWNJvLFAKuQDW7soVCklamPfdTQHLAlstm3U2MrJrsropp 0GOGTp726JjF8fncAx3TjrVMQSot2cCTbg3reHUEIqUilIsWJpkcualRHc866gcOUPxbCaBM3xpB JoY11gQtjAhAa4Nbscx9P+Z5H8DE3ZXgT4aaukoU8nfj7oAQrnyKad5ngVR79uTYI3c8J9vT9Zhj AZTF/pzV8r6z2/8njbqH/fja16DMuHUeRgIoVXS1GLQxKAukvjsAtY/He1ud7OQ+1nfu2Z3eWZiA PkuS8dHyNHy6Kh391mThi3U5GLk2GaPXp2LCpgxM2pKFKS5ZmLY9BzN35GHWznxMccvDVPdcTPfM xyzvIszZW4J5fiWY71+KBQFlWOZbgKV787FibwFW2YFvY2AJNgUVY3NwCbYEFhsQVGwhIG4IKDSx

       

       

      ]]> 

       

      </Contents>

       

      <GraphicBounds Left="0" Top="0" Right="318.0443844746858" Bottom="212.27962454324546" />

       

      </Properties>

       

      - <TextWrapPreference Inverse="false" ApplyToMasterPageOnly="false" TextWrapSide="BothSides" TextWrapMode="None">

       

       

      - <Properties>

       

       

      <TextWrapOffset Top="0" Left="0" Bottom="0" Right="0" />

       

      </Properties>

       

      <ContourOption ContourType="SameAsClipping" IncludeInsideEdges="false" ContourPathName="$ID/" />

       

      </TextWrapPreference>

       

      <Link Self="ud9" AssetURL="$ID/" AssetID="$ID/" LinkResourceURI="file:C:/Users/dkzhang/Desktop/Templates/Images/Hand.PNG" LinkResourceFormat="$ID/Portable Network Graphics (PNG)" StoredState="Embedded" LinkClassID="35906" LinkClientID="257" LinkResourceModified="false" LinkObjectModified="false" ShowInUI="true" CanEmbed="true" CanUnembed="true" CanPackage="true" ImportPolicy="NoAutoImport" ExportPolicy="NoAutoExport" LinkImportStamp="file 129786755834128158 234438" LinkImportModificationTime="2012-04-12T11:39:43" LinkImportTime="2012-04-16T10:37:47" LinkResourceSize="0~393c6" />

       

       

      <ClippingPathSettings ClippingType="None" InvertPath="false" IncludeInsideEdges="false" RestrictToFrame="false" UseHighResolutionImage="true" Threshold="25" Tolerance="2" InsetFrame="0" AppliedPathName="$ID/" Index="-1" />

       

       

      <ImageIOPreference ApplyPhotoshopClippingPath="true" AllowAutoEmbedding="true" AlphaChannelName="$ID/" />

       

      </Image>