Add a file to a object through java api

I cant find any documentation on how to add a file to an object through the java API.
Is there any possible solution for this?

I want to add a file to an object which can be generated through the actions → print → my word document.

thank you.

Hi Elias,

Please refer to the Integration Server Java API Reference guide and Service Development Help guide for how to build JAVA services in webMethods.

For file-related operations see if something helpful you can find for your requirement under the pub.file folder.

As per your requirement, you should be using the octet-stream content type while doing your logic so that it can be downloaded in the browser and printed.

Let us know if any further issues.

Firoz N