My Oracle Support Banner

Getting OutOfMemoryError While Uploading Documents to Imaing using imaging-client.jar (Doc ID 2949167.1)

Last updated on MAY 22, 2023

Applies to:

Oracle WebCenter Content: Imaging - Version and later
Information in this document applies to any platform.


While uploading a document into WebCenter Content: Imaging using imaging-client.jar third-party API, the following error is received:

:/imaging/ws/DocumentContentService from client; ServiceName: {}DocumentContentService ; PortName: {}DocumentContentServicePort ; Client side features: []; Client side policies: ; java.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(

The code involved in this task is uploading a document using the method createDocument() from class oracle.imaging.DocumentContentService.

When trying to upload large-size files: 20mb, 50mb, or even 1GB in WebCenter content, the error shows up.

How can this issue be resolved?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.