Issue while storing the Pdf,png documents into the bloomreach console through java

Continuing the discussion from Storing or uploading a asset (pdf,png) files using java into cms:

We would like to store pdf or png documents under the /content/assets JCR node using Java and link those newly created nodes to our custom documentType.

Can you please guide us how to proceed further on this because we didn’t find any documentation on this topic?