The current implementation of the Document Intelligence SDK for Java does not support streaming large files directly. As you mentioned, the DocumentIntelligenceClientImpl uses hard-coded "application/json" BodyParams, and the AnalyzeDocumentOptions allows for input through BinaryData, which requires loading the entire file into memory using binaryData.toBytes(). This means that, unlike the Python SDK, the Java SDK does not provide a mechanism for streaming large files without consuming significant memory resources.
If streaming is a critical requirement for your application, you may need to consider alternative approaches, such as breaking the files into smaller chunks or using the Python SDK for that specific functionality.
References: