Soap error while sending array of binday data

Hi,

I have started with Webservices, im i trying to understand the whole stuff.

Mean time i was working with wsdl-wrtiter, so i was not much concerned with
the xml formats it does generate xml for us.

http://www.giffin.org/wsdlwriter.php

I got some error while returing binary files. I put return type as base64Binary as it worked for me.

now i want to return array of binary data, this i got some error as mentioned below.

[COLOR="Red"][B]SOAP-ERROR: Encoding: string '\\x89...' is not a valid utf-8 string [/B][/COLOR]

how could i solve it, hope some one has seen this error before.

Thanks in advance.