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

'cannot open the file as zip archive is not archive' in CAF UI

  • 1.  'cannot open the file as zip archive is not archive' in CAF UI

    Posted Tue July 21, 2020 06:42 AM

    Hi All,
    I am facing the following error while trying to download zip file from CAF UI ‘cannot open the file as zip archive is not archive’

    and i did pass these below arguments for SimpleFileExportBean

    SimpleFileExportBean ff = new SimpleFileExportBean(“cimUpload.zip”, “Application/Zip”, File.getBytes().length, true, File.getBytes());

    Can someone kindly help me with this error


    #MWS-CAF-Task-Engine
    #webMethods
    #BPM


  • 2.  RE: 'cannot open the file as zip archive is not archive' in CAF UI

    Posted Tue July 21, 2020 09:47 AM

    Hi Manju,

    The bytes you are reading from File is not of content-type Application/zip, I guess that’s why that error is coming.

    First you need to zip the content probably and then export it using content-type Application/zip

    Else, try to use content-type as - application/ octet-stream in the SimpleFileExportBean and see if that works. But not sure after the zip file exported with this looks like.

    Regards,
    Firoz Nalband.


    #BPM
    #MWS-CAF-Task-Engine
    #webMethods