Skip to content

Conversation

@edeandrea
Copy link
Contributor

  • Introduced support for file-based conversion and chunking workflows.
  • Added synchronous and asynchronous methods for handling file paths in API and client layers.
  • Enhanced error handling and validation for file-based operations.
  • Updated tests to cover new file-based use cases, including edge cases and null checks.

Fixes #227

@edeandrea
Copy link
Contributor Author

edeandrea commented Dec 16, 2025

So after some examination, really the only difference between "process/chunk file" and "process/chunk url" is that the process/chunk file uses multipart/form-data.

We can do the same thing that /v1/convert/file does using /v1/convert/source (and the chunk variants) by sending the base64 encoded files in the request body.

So all I really did here was add some convenience methods to DoclingServeConvertApi and DoclingServeChunkApi to make constructing the request objects & reading the files easier.

@edeandrea edeandrea force-pushed the process-file-ops branch 2 times, most recently from f7c17fa to 9235db8 Compare December 16, 2025 15:43
- Introduced support for file-based conversion and chunking workflows.
- Added synchronous and asynchronous methods for handling file paths in API and client layers.
- Enhanced error handling and validation for file-based operations.
- Updated tests to cover new file-based use cases, including edge cases and null checks.

Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>

Fixes docling-project#227

Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
@github-actions
Copy link

:java_duke: JaCoCo coverage report

Overall Project 44.7% 🔴

There is no coverage information present for the Files changed

@github-actions
Copy link

github-actions bot commented Dec 16, 2025

TestsPassed ✅SkippedFailed
Gradle Test Results (all modules & JDKs)858 ran858 passed0 skipped0 failed
TestResult
No test annotations available

@github-actions
Copy link

HTML test reports are available as workflow artifacts (zipped HTML).

• Download: Artifacts for this run

@github-actions
Copy link

HTML test reports are available as workflow artifacts (zipped HTML).

• Download: Artifacts for this run

@edeandrea edeandrea merged commit a028d94 into docling-project:main Dec 16, 2025
21 checks passed
@docling-java-ops docling-java-ops bot added the released Issue has been released label Dec 16, 2025
@docling-java-ops
Copy link
Contributor

🎉 This issue has been resolved in v0.4.0 (Release Notes)

@edeandrea edeandrea deleted the process-file-ops branch December 23, 2025 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Issue has been released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement process file operations

2 participants