Skip to Content

How to read .tar file?

Hi All,

I have a scenario .tar file to SAP .

Kindly advise me how to read .tar using PI

Regards

Umesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 27, 2017 at 10:36 AM

    Hi Umesh,

    Are you sure that you have to unzip the .tar file?, i mean, you can have a File to File scenario, and to deposit the file in filesystem accesible by SAP ERP ant this SAP ERP would be the responsible for unzip. If you have to unzip, you will need to do:

    Option 1 Java code like here https://blogs.sap.com/2013/04/29/module-payloadgzipbean-zip-and-unzip-payloads-using-gzip-2/ , also you can do an UDF.

    Option 2. Install in the OS system a program to zip/unzip these kind of file and to call this OS command from file adapter.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 14 at 11:12 AM

    Hi Umesh!

    I've never implemented scenarios in which .tar files were used, but I guess, that processing such files shouldn't be a kind of problem. You could try to use Apache Common Compress library to fulfill your requirement:

    https://stackoverflow.com/questions/315618/how-do-i-extract-a-tar-file-in-java/7556307#7556307

    At first sight, it's similar to .zip files processing in Java.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded