precomp-cpp icon indicating copy to clipboard operation
precomp-cpp copied to clipboard

Adding Base64 streams in XML

Open maadjordan opened this issue 9 years ago • 1 comments

I've run precomp4.6 on the attached file which is compressed with GZ but it seems that precomp does not recognize the embedded base64 streams which easy to support. Also refer to my post at http://encode.ru/threads/2036-Leanify?p=49016&viewfull=1#post49016 for examples on xml files generated from swf files. it such tool (swf converter to xml and back is made) then a better swf support is gained Acacia_High.zip

maadjordan avatar Jul 25 '16 13:07 maadjordan

In the acacia file, the Base64 parts have the following format:

<EmbeddedData_v6 NumIndices="..." NumVertices="...">
  <Vertices>...</Vertices>
  <Indices>...</Indices>
  <Extents>...</Extents>
  <OrigExtents>...</OrigExtents>
  ...
</EmdeddedData_v6>

Between the mentioned inner XML tags, there is data encoded using Base64.

It would be possible to add this to the Base64 detection in Precomp, but it would only work on files in that specific format which doesn't seem to be that popular as I found nothing about, e.g. searching for "EmbeddedData_v6".

It would be more useful to do some generic Base64 detection, but this is problematic because of all the false positives it would give (e.g. most text files would be detected). The MIME Base64 data supported at the moment is preceded by "Content-transfer-encoding: base64", so false positives are very rare.

I'll keep this issue open, but at low priority, and have a look at it when I add other Base64 formats to Precomp.

schnaader avatar Aug 26 '16 16:08 schnaader