Field Service

Get Involved. Join the Conversation.

Topic

    Zdenek Salava
    What is best way to download .zip Daily extract files?Answered
    Topic posted March 1, 2017 by Zdenek SalavaBlue Ribbon: 750+ Points, last edited March 1, 2017 
    139 Views, 3 Comments
    Title:
    What is best way to download .zip Daily extract files?
    Content:

    Hello,

    I would like to ask... What is best way to download .zip Daily extract files(REST API - OFSC) ?

    We need some automatic tool for downloading .zip Daily extract files which have size about 300MB.

    We tried to download files through by our middleware SAP PO. But we have problems with memory and the subsequent downfall of middleware(We are able to download only small files(max. 30MB) by SAP PO.)

    Probably SAP PO is not appropriatel. Do you have some experience which tool to use?

     

    Thank you for your help.

    Best regard

    Zdenek Salava 

     

    Version:
    OFSC 16.8 - REST API

    Best Comment

    Zdenek Salava

    Thanks for answer.
    Finally we used different option => We use PHP and cURL. Through PHP we get the links to files and download them by cURL(which is part of PHP).
    Regards,
    Zdenek Salava

     

    Comment

     

    • Hardik Gupta

      Hello Zdenek Salava,

      You can use the REST API:  http://docs.oracle.com/cloud/latest/fieldservicecs_gs/CXFSC/toc.htm

      The End point has the format /rest/ofscCore/v1/folders/dailyExtract/folders/{dailyExtractDate}/files/{dailyExtractFilename}

      I assume you are able to do this. Now as the part of header information pass Range value: 

      For example, "Range: bytes=1000-" means: download starting from offset 1000 bytes up to the end of file. ( you can find this in the documentation link)

      So you can create a loop for fixed ranges and complete the download. A program can be made to invoke the API and save the response in the desired location.

      Regards,

      Hardik Gupta

      • Erlin Garcia

         

         

        Massive download of TOA image Excuse me, when you talk about downloading daily files, can you say that it talks about downloading the images attached to the orders? It is that we have our client who needs to download massively the images that from mobile phones are taken by field technicians. This is possible ?? Thank you !

    • Zdenek Salava

      Thanks for answer.
      Finally we used different option => We use PHP and cURL. Through PHP we get the links to files and download them by cURL(which is part of PHP).
      Regards,
      Zdenek Salava

       

    • Erlin Garcia

       

      Massive download of TOA image Excuse me, when you talk about downloading daily files, can you say that it talks about downloading the images attached to the orders? It is that we have our client who needs to download massively the images that from mobile phones are taken by field technicians. This is possible ?? Thank you !