Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-2273

Creating WDDX from a binary content using CFML2WDDX always creates the same content

    Details

    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      use ToBase64( binaryData ) when encoding the data, and ToString( ToBinary( base64Data ) ) when decoding.

      Show
      use ToBase64( binaryData ) when encoding the data, and ToString( ToBinary( base64Data ) ) when decoding.

      Description

      CFML2WDDX on any binary file generates the same XML as it is shown in next example:
      CFML source code:

      <cfset f = structNew()>
      <cfset f.content = "Very simple content of a file">
      <cfset f.source = "c:/simple.txt">
      <cffile action="WRITE" output="#f.content#" file="#f.source#">
      <cffile action="READBINARY" file="#f.source#" variable="f.binary">
      <cfwddx action="CFML2WDDX" input="#f.binary#" output="f.wddxContent">
      <cfdump var="#f.wddxContent#" label="WDDX content of any binary content is always the same!">

      Generated WDDX content of any binary file
      <wddxPacket version='1.0'><header/><data><struct type='L[B;'></struct></data></wddxPacket>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                zojx Lojz Krajnc
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: