cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Downloading and writing a base64 encoded ZIP file

fbatchelor83
New Contributor

Hello,
Has anyone had experience of downloading a base64 encoded ZIP file. It sounds relatively straight forward however the file that is created cannot be opened (m/s invalid file format error appears). The size of the file is almost the same as the source file, therefore I assume somewhere the process is going wrong.

image

Any help appreciated!

7 REPLIES 7

fbatchelor83
New Contributor

Capture2

tstack
Former Employee

In your pipeline, is the SOAPExecute snap outputting a byte array or a string that is base64?

Also, what is the MultipartWriter doing in this pipeline?

fbatchelor83
New Contributor

The SOAP response will detail the file name, date and the file split into chunks of data (base 64 binary).

jsonPath($, โ€œ$[โ€˜soap:Bodyโ€™].Stream_LatestPackageResponse.Stream_LatestPackageResult.File.Chunk[*]โ€)

Weโ€™re building an array of the encoded strings. See the splitvalue screenshot.

fbatchelor83
New Contributor

The intention of the multipart writer was to merge the individual binary output and write the zip file