Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Read binary data from URL and output to servlet (Carte)

  1. #1
    Join Date
    Sep 2014
    Posts
    8

    Default Read binary data from URL and output to servlet (Carte)

    Dear all,

    I would like to use PDI as wrapper for binary downloads which do require a proper session cookie (URL BASIC authentication does not work) - but I am still struggling with the right method to use.
    It would be great if somebody could recommend if there is anything working already...

    Let's start with what I have
    1. Login to RPC interface and start session
    2. HTTP Request to fetch MIME type, size, name from JSON response
    3. HTTP Request to fetch the binary file in the result
    4. Logout from RPC session
    5. Filter result (ensure it's only one)
    6. Output binary data to local disc (mis-)using "Text file output" without seperator/enclosure -> corrupted file if not TXT
    7. Output binary data to servlet (mis-)using "Text file output" without seperator/enclosure -> corrupted file downloaded executeTrans.dms


    http://localhost:8081/kettle/execute...e_download.ktr

    So basically I was able to do my proper authentication + session handling + JSON RPC request + logout.
    Still I have no clue if there is a solution to set the proper header information and encoding in the servlet...?!

    Thank's for sharing knowledge and ideas!

    PS: Running on PDI CE 7.1.0

  2. #2
    Join Date
    Sep 2014
    Posts
    8

    Default

    Probably using a Scripting Step may work: http://wiki.pentaho.com/display/EAI/...r+web+services

    Does anybody know if we also set header information in Scripting steps?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.