cancel
Showing results for 
Search instead for 
Did you mean: 

Error while using zipping the FileTreeBuilder Class Output

sumanth171
Active Participant
0 Kudos

Hello Team,

I am using FileTreeBuilder class in groovy to generate folder structure dynamically with message body as file included in them. I set the tree object as message body output and while using zip function, CPI throwing below error.

com.sap.it.rt.adapter.http.api.exception.HttpResponseException: An internal server error occured: No type converter available to convert from type: groovy.util.FileTreeBuilder to the required type: java.io.InputStream with value groovy.util.FileTreeBuilder@720cf03b.

Please let me know if the class object to be converted to byte array or some kind of output stream to get it worked. I have used Writer class but didn't got the result as expected.

Thanks in advance.

Regards,

Anil

Accepted Solutions (0)

Answers (0)