Input file control : Diificulties to upload a file

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

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.