I am doing upload functionality from CAF Screen and getting conversion errors. Below are the details.
1.I have taken FileItem of type - com.webmethods.caf.faces.servlet.FileItemWrapper in my Bean variable and binded the same to my FileInput control in my screen.
- once the file is selected and attempted to submit, am doing the below.
InputStreamReader in = new InputStreamReader(this.getUserFranchisemappingUploadVO().getFileItem().getInputStream());
3.But am getting the error “java.lang.IllegalArgumentException: Cannot convert UserFranchiseMappingUpload_Template.csv of type class com.webmethods.rtl.util.obj.PortalFileBean$PFBFileItem to class com.webmethods.caf.faces.servlet.FileItemWrapper”.
Pls help me in suggesting the prefered Type.