Send file to a WebService as bytes[]. File corrupted after receive

hi,i have a Lotuscript WebService Consumer.

It send a PDF file as bytes to the webService.

The WS get the file as XSD_BASE64BINARY and decode it to disk.

The file is corrupted…

Any idea?

thanks…