IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Input file control : Diificulties to upload a file

  • 1.  Input file control : Diificulties to upload a file

    Posted Thu February 17, 2011 05:53 PM

    Hello.
    In a portlet I am using the" Input File " control. I bind it to a Java object org.apache.commons.fileupload.FileItem as requested in the webMethods documentation

    Then I call a web service in the IS in order to get the input file as a org.apache.commons.fileupload.FileItem object.

    But in the IS part it fails. The object is passad as a String ???

    Do you know how I can upload a file and then get its content as an object in the IS part ?

    Thanks by advance


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 2.  RE: Input file control : Diificulties to upload a file

    Posted Fri February 18, 2011 05:59 PM

    The short answer is:

    • Get the byte content of the FileItem in CAF application and pass to IS as Base64 encoded String.

    • On the IS side Base64 decode to get byte content of file back.

    Regards,
    –mark


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS