IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
 View Only
  • 1.  ZIP adapter

    Posted Tue June 21, 2016 10:04 AM

    Originally posted by: Karthik12r


    Hi,

     

    I use ITX 9.0, and have the below requirement to unzip data.

    My input is from MQ, ITX reads from the queue and this is how my input tree looks like.

     

    Refer attached 

     

    The actual content that required for mapping and transformation come under "anyElem Comp" which is compressed.
    Is it possible to use ZIP adapter, to decompress this zipped content ?
    Again on the output side, i would have to zip the output (not this same tree, just the output content) and upload it back to a response queue.

     

    Used the below rule to get the content unzip using ZIP adapter, but from a file. I need to get this from a content of a file.

    GET("ZIP","C:\DEMO\INPUT_MQ.zip,*")

    Thanks
    Karthik.


    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: ZIP adapter

    Posted Wed June 22, 2016 04:27 AM
      |   view attached

    Originally posted by: paul.brett


    Assuming that the data is in GZIP format, and has been base64 encoded, here is my solution.

    I use BASE64TOTEXT() first.

    Then the GZIP adapter on that data....  =GET("GZIP","-STREAM GZIP -ACTION DECOMPRESS", ... )

    And finally, the PUT() to the MQS adapter to place the decoded+decompressed data on a queue, but this could just as easily be mapped and re-compressed and re-encoded as BASE64 before benig placed on the queue.

    Thank-you

    Paul

    Follow me on Twitter


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender

    Attachment(s)

    zip
    anyElem.zip   8 KB 1 version


  • 3.  Re: ZIP adapter

    Posted Thu June 23, 2016 03:11 AM

    Originally posted by: Karthik12r


    Paul,

    Thanks for the response.

    If the format is zip, what would be the equivalent to this rule to unzip?

     

    =GET("GZIP","-STREAM GZIP -ACTION DECOMPRESS", ... )


    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 4.  Re: ZIP adapter

    Posted Thu June 23, 2016 04:08 AM

    Originally posted by: paul.brett


    The ZIP adapter does not have equivalent commands, and will only work with files.

    You would need to extract the data to a file, and have another process then pick that up.

    Thank-you

    Paul

    Follow me on Twitter


    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange