How to Convert ObjectList to StringList

Hi All,

I have a javaservice which gives the fileNames as a ObjectList. Now I want to convert this into StringList.

When I am looping on the fileNames and calling bytestoString it is giving me the error “bytes must be byte”. I tried streamtoBytes…it has given “typeCastException”

Can someone help.

Regards,
David

Why your JavaService does not already reply with a StringList?

Open your JavaService with developer, in the output insert a StringList, for example named “StringListOutput”.

Now under menu tools → Generate Code → Select your service → Generate code: For implementing this service → Output → All fields.

Now your clipboard has this:

Now in your service fill in the StringList !