I want to write a Java (17) method, which downloads a file and uploads it directly to another HTTP endpoint without having the whole file in memory.
- HTTP GET to download the file
- HTTP POST to upload file
Conditions:
- Complete file not in memory
- Complete file not on disk
How can I solve this to only have chunks of the download in memory and upload it directly?