IIRC, bizdoc content cannot be changed. You may be able to do so in the pipeline object, but the TN persisted content will not change.
If you don’t need to do any manipulation of the original content string, then I don’t see any reason why you couldn’t just work with byte arrays.
#webMethods#Integration-Server-and-ESB#B2B-Integration