This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


The following commit(s) were added to refs/heads/main by this push:
     new 54017f9e8 chore: default data types on the object store and file 
Kamelets (#3117) (#3307)
54017f9e8 is described below

commit 54017f9e8deddbc1ddfe9d67eba7585ee9ffcb89
Author: Claus Ibsen <[email protected]>
AuthorDate: Sat Nov 21 01:09:37 2026 +0100

    chore: default data types on the object store and file Kamelets (#3117) 
(#3307)
    
    * chore: default data types on the object store and file Kamelets (#3117)
    
    Adds binary (application-octet-stream) as the default input of
    aws-s3-sink, ceph-sink, minio-sink, ibm-cos-sink, google-storage-sink,
    azure-storage-blob-sink, azure-storage-blob-append-sink,
    azure-storage-datalake-sink, azure-storage-files-sink and scp-sink, and
    as the default output of langchain4j-ingest-file-source. Text becomes
    bytes and Content-Type is application/octet-stream; a File, a
    GenericFile and a cached stream are kept (CAMEL-27267). None of these
    components reads Content-Type, so what is stored does not change.
    
    ftp-sink, ftps-sink, sftp-sink, ftp-source, ftps-source and sftp-source
    get no default, with a comment: with stream caching off it would read a
    streamed file into memory.
    
    The Citrus tests of the sinks record the body class and Content-Type
    after the Kamelet; the ceph-sink test checks the stored content type.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
    
    * chore: binary output on ftp-source, ftps-source and sftp-source (#3117)
    
    CAMEL-27299 keeps a plain InputStream when Camel applies the binary output
    type of a source Kamelet, so the binary default no longer reads a file into
    memory when stream caching is off, also with streamDownload. The three
    sources now declare it: Content-Type is application/octet-stream.
    
    The source tests expect that Content-Type, and remove it before the HTTP
    call, since Citrus reads an application/octet-stream body as bytes. A new
    ftp-source test with streamDownload and stream caching off checks that the
    body stays the stream of the FTP client.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
    
    * chore: sftp-source-stream-route expects the binary Content-Type (#3117)
    
    The test came with #3302, before sftp-source got 'out: binary'. It now
    expects Content-Type application/octet-stream and removes it before the
    HTTP call, as the other source tests do, since Citrus reads an
    application/octet-stream body as bytes.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
    
    ---------
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 kamelets/aws-s3-sink.kamelet.yaml                  | 10 +++++++--
 .../azure-storage-blob-append-sink.kamelet.yaml    | 10 +++++++--
 kamelets/azure-storage-blob-sink.kamelet.yaml      | 10 +++++++--
 kamelets/azure-storage-datalake-sink.kamelet.yaml  | 10 +++++++--
 kamelets/azure-storage-files-sink.kamelet.yaml     | 10 +++++++--
 kamelets/ceph-sink.kamelet.yaml                    | 10 +++++++--
 kamelets/ftp-sink.kamelet.yaml                     |  3 +++
 kamelets/ftp-source.kamelet.yaml                   |  8 ++++++-
 kamelets/ftps-sink.kamelet.yaml                    |  3 +++
 kamelets/ftps-source.kamelet.yaml                  |  8 ++++++-
 kamelets/google-storage-sink.kamelet.yaml          | 10 +++++++--
 kamelets/ibm-cos-sink.kamelet.yaml                 | 10 +++++++--
 .../langchain4j-ingest-file-source.kamelet.yaml    |  8 ++++++-
 kamelets/scp-sink.kamelet.yaml                     | 10 +++++++--
 kamelets/sftp-sink.kamelet.yaml                    |  3 +++
 kamelets/sftp-source.kamelet.yaml                  |  8 ++++++-
 .../main/resources/META-INF/kamelets-index.json    | 26 +++++++++++-----------
 .../resources/kamelets/aws-s3-sink.kamelet.yaml    | 10 +++++++--
 .../azure-storage-blob-append-sink.kamelet.yaml    | 10 +++++++--
 .../kamelets/azure-storage-blob-sink.kamelet.yaml  | 10 +++++++--
 .../azure-storage-datalake-sink.kamelet.yaml       | 10 +++++++--
 .../kamelets/azure-storage-files-sink.kamelet.yaml | 10 +++++++--
 .../main/resources/kamelets/ceph-sink.kamelet.yaml | 10 +++++++--
 .../main/resources/kamelets/ftp-sink.kamelet.yaml  |  3 +++
 .../resources/kamelets/ftp-source.kamelet.yaml     |  8 ++++++-
 .../main/resources/kamelets/ftps-sink.kamelet.yaml |  3 +++
 .../resources/kamelets/ftps-source.kamelet.yaml    |  8 ++++++-
 .../kamelets/google-storage-sink.kamelet.yaml      | 10 +++++++--
 .../resources/kamelets/ibm-cos-sink.kamelet.yaml   | 10 +++++++--
 .../langchain4j-ingest-file-source.kamelet.yaml    |  8 ++++++-
 .../main/resources/kamelets/scp-sink.kamelet.yaml  | 10 +++++++--
 .../main/resources/kamelets/sftp-sink.kamelet.yaml |  3 +++
 .../resources/kamelets/sftp-source.kamelet.yaml    |  8 ++++++-
 .../aws/s3/aws-s3-sink-route.citrus.it.yaml        |  7 ++++++
 .../test/resources/aws/s3/aws-s3-sink-route.yaml   |  2 ++
 ...e-storage-blob-append-sink-route.citrus.it.yaml |  2 +-
 .../azure-storage-blob-append-sink-route.yaml      |  3 +++
 .../azure-storage-blob-sink-route.citrus.it.yaml   |  2 +-
 .../azure/azure-storage-blob-sink-route.yaml       |  3 +++
 ...zure-storage-datalake-sink-route.citrus.it.yaml |  2 +-
 .../azure/azure-storage-datalake-sink-route.yaml   |  3 +++
 .../resources/ceph/ceph-sink-route.citrus.it.yaml  | 11 +++++----
 .../src/test/resources/ceph/ceph-sink-route.yaml   |  9 ++++++++
 .../src/test/resources/ceph/verifyObject.groovy    |  8 ++++++-
 .../resources/ftp/ftp-source-route.citrus.it.yaml  |  2 +-
 .../src/test/resources/ftp/ftp-source-route.yaml   |  3 +++
 ...yaml => ftp-source-stream-route.citrus.it.yaml} | 14 +++++++-----
 ...rce-route.yaml => ftp-source-stream-route.yaml} |  7 ++++++
 .../resources/ftp/ftps-source-route.citrus.it.yaml |  2 +-
 .../src/test/resources/ftp/ftps-source-route.yaml  |  3 +++
 .../google-storage-sink-route.citrus.it.yaml       |  2 +-
 .../google/google-storage-sink-route.yaml          |  3 +++
 .../ibmcos/ibm-cos-sink-route.citrus.it.yaml       |  4 ++--
 .../test/resources/ibmcos/ibm-cos-sink-route.yaml  |  5 +++++
 .../langchain4j-ingest-file-media-route.yaml       |  4 ++++
 ...chain4j-ingest-file-source-route.citrus.it.yaml |  5 +++++
 .../langchain4j-ingest-file-source-route.yaml      | 10 +++++++++
 .../langchain4j-ingest/parser-max-size-route.yaml  |  4 ++++
 .../resources/ssh/scp-sink-route.citrus.it.yaml    |  8 +++----
 .../src/test/resources/ssh/scp-sink-route.yaml     |  5 +++++
 .../resources/ssh/sftp-source-route.citrus.it.yaml |  2 +-
 .../src/test/resources/ssh/sftp-source-route.yaml  |  3 +++
 .../ssh/sftp-source-stream-route.citrus.it.yaml    |  2 +-
 .../resources/ssh/sftp-source-stream-route.yaml    |  3 +++
 64 files changed, 349 insertions(+), 82 deletions(-)

diff --git a/kamelets/aws-s3-sink.kamelet.yaml 
b/kamelets/aws-s3-sink.kamelet.yaml
index fc295bae3..72746d6f9 100644
--- a/kamelets/aws-s3-sink.kamelet.yaml
+++ b/kamelets/aws-s3-sink.kamelet.yaml
@@ -37,9 +37,9 @@ spec:
 
       Use it to store data in S3 for other systems or for archiving, such as 
exported records, received documents or events. To collect many small messages 
into a few large files, use `aws-s3-streaming-upload-sink`.
 
-      Input: the body is the content of the file, as text, bytes, a stream or 
a file. Turn structured data such as a Map into JSON text first, for example 
with `json-serialize-action`. The optional `file` header (or `ce-file`) is the 
key, the path of the file in the bucket, such as `orders/order-1.json`. Without 
it, and without `keyName`, the key is a generated unique ID. The optional 
`CamelAwsS3ContentType` header sets the content type of the file; the 
`Content-Type` header is not used, [...]
+      Input: the body is the content of the file, as text, bytes, a stream or 
a file. Text is turned into bytes before the upload, and the `Content-Type` 
header is set to `application/octet-stream`. A file is passed on as it is, and 
so is a stream, unless stream caching is turned off. Turn structured data such 
as a Map into JSON text first, for example with `json-serialize-action`. The 
optional `file` header (or `ce-file`) is the key, the path of the file in the 
bucket, such as `orders/o [...]
 
-      Output: the message is unchanged. The `CamelAwsS3Key` and 
`CamelAwsS3ETag` headers give the key and the ETag of the uploaded file.
+      Output: the body is the content of the file, as bytes when it was text, 
and the `Content-Type` header is `application/octet-stream`. The 
`CamelAwsS3Key` and `CamelAwsS3ETag` headers give the key and the ETag of the 
uploaded file.
 
       Good to know: a file with the same key is replaced without warning, 
unless `conditionalWritesEnabled` is true: then the upload of a key that exists 
already fails. When `keyName` is set, the `file` header is ignored and every 
message replaces the same file. To copy files from `aws-s3-source` under their 
own names, set the `file` header from its `CamelAwsS3Key` header first. It also 
works with S3-compatible storage, such as MinIO, through `overrideEndpoint`, 
`uriEndpointOverride` and [...]
     required:
@@ -176,6 +176,12 @@ spec:
         type: boolean
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         file:
           title: File Name
diff --git a/kamelets/azure-storage-blob-append-sink.kamelet.yaml 
b/kamelets/azure-storage-blob-append-sink.kamelet.yaml
index cb41944fa..badaa2a07 100644
--- a/kamelets/azure-storage-blob-append-sink.kamelet.yaml
+++ b/kamelets/azure-storage-blob-append-sink.kamelet.yaml
@@ -37,9 +37,9 @@ spec:
 
       Use it to collect log lines, audit records or CSV rows from many 
messages into one growing blob. To write each message as a blob of its own, use 
`azure-storage-blob-sink`.
 
-      Input: the body is the data to add: text, bytes or a stream. It is added 
as it is, so end each line with a line break yourself. Turn structured data 
such as a Map into JSON text first, for example with `json-serialize-action`. 
The `file` header (or `ce-file`) is the name of the blob, such as 
`logs/app.log`. Without it, each message goes to a new blob with a generated 
unique name.
+      Input: the body is the data to add: text, bytes or a stream. Text is 
turned into bytes before it is added, and the `Content-Type` header is set to 
`application/octet-stream`. A file is passed on as it is, and so is a stream, 
unless stream caching is turned off. It is added as it is, so end each line 
with a line break yourself. Turn structured data such as a Map into JSON text 
first, for example with `json-serialize-action`. The `file` header (or 
`ce-file`) is the name of the blob,  [...]
 
-      Output: the body afterwards is `true`, and headers such as 
`CamelAzureStorageBlobAppendOffset` and 
`CamelAzureStorageBlobCommittedBlockCount` describe the append.
+      Output: the body afterwards is `true`, the `Content-Type` header is 
`application/octet-stream`, and headers such as 
`CamelAzureStorageBlobAppendOffset` and 
`CamelAzureStorageBlobCommittedBlockCount` describe the append.
 
       Good to know: the container must exist: a missing container fails the 
message. A name that is already used by a block blob, such as one written by 
`azure-storage-blob-sink`, fails the message too. Headers that start with 
`CamelAzureStorageBlob` are removed from the message first, so they cannot 
change what the Kamelet does.
     required:
@@ -103,6 +103,12 @@ spec:
         enum: ["SHARED_ACCOUNT_KEY", "AZURE_SAS", "AZURE_IDENTITY", 
"CLIENT_SECRET"]
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         file:
           title: File Name
diff --git a/kamelets/azure-storage-blob-sink.kamelet.yaml 
b/kamelets/azure-storage-blob-sink.kamelet.yaml
index 2204182b9..304be1163 100644
--- a/kamelets/azure-storage-blob-sink.kamelet.yaml
+++ b/kamelets/azure-storage-blob-sink.kamelet.yaml
@@ -37,9 +37,9 @@ spec:
 
       Use it to store documents, exports or event payloads in Azure, for other 
applications or for archiving. To add each message at the end of one growing 
blob, such as a log, use `azure-storage-blob-append-sink`.
 
-      Input: the body is the content of the blob: text, bytes or a stream. 
Turn structured data such as a Map into JSON text first, for example with 
`json-serialize-action`. The optional `file` header (or `ce-file`) is the name 
of the blob, such as `reports/2026-05.csv`; a `/` in it puts the blob in a 
virtual folder. Without it, the blob gets a generated unique name.
+      Input: the body is the content of the blob: text, bytes or a stream. 
Text is turned into bytes before the upload, and the `Content-Type` header is 
set to `application/octet-stream`. A file is passed on as it is, and so is a 
stream, unless stream caching is turned off. Turn structured data such as a Map 
into JSON text first, for example with `json-serialize-action`. The optional 
`file` header (or `ce-file`) is the name of the blob, such as 
`reports/2026-05.csv`; a `/` in it puts the [...]
 
-      Output: the body afterwards is `true`, and headers such as 
`CamelAzureStorageBlobETag` and `CamelAzureStorageBlobLastModified` describe 
the uploaded blob.
+      Output: the body afterwards is `true`, the `Content-Type` header is 
`application/octet-stream`, and headers such as `CamelAzureStorageBlobETag` and 
`CamelAzureStorageBlobLastModified` describe the uploaded blob.
 
       Good to know: a blob with the same name is replaced. The container must 
exist: a missing container fails the message. The name comes only from `file` 
or `ce-file`: to copy blobs from `azure-storage-blob-source` and keep their 
names, set `file` from its `CamelAzureStorageBlobBlobName` header first. 
Headers that start with `CamelAzureStorageBlob` are removed from the message 
first, so they cannot change what the Kamelet does.
     required:
@@ -103,6 +103,12 @@ spec:
         enum: ["SHARED_ACCOUNT_KEY", "AZURE_SAS", "AZURE_IDENTITY", 
"CLIENT_SECRET"]
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         file:
           title: File Name
diff --git a/kamelets/azure-storage-datalake-sink.kamelet.yaml 
b/kamelets/azure-storage-datalake-sink.kamelet.yaml
index d2d795c93..921a64cba 100644
--- a/kamelets/azure-storage-datalake-sink.kamelet.yaml
+++ b/kamelets/azure-storage-datalake-sink.kamelet.yaml
@@ -37,9 +37,9 @@ spec:
 
       Use it to land data for analytics, such as exports, events or reports, 
in a data lake. For plain blob containers, use `azure-storage-blob-sink`.
 
-      Input: the body is the content of the file: text, bytes or a stream. A 
Map fails: turn it into JSON text first, for example with 
`json-serialize-action`. The optional `file` header (or `ce-file`) is the name 
of the file, such as `sales-2026-05.csv`. Without it, the file gets a generated 
unique name.
+      Input: the body is the content of the file: text, bytes or a stream. 
Text is turned into bytes before the upload, and the `Content-Type` header is 
set to `application/octet-stream`. A file is passed on as it is, and so is a 
stream, unless stream caching is turned off. A Map fails: turn it into JSON 
text first, for example with `json-serialize-action`. The optional `file` 
header (or `ce-file`) is the name of the file, such as `sales-2026-05.csv`. 
Without it, the file gets a generate [...]
 
-      Output: the body afterwards is `true`.
+      Output: the body afterwards is `true`, and the `Content-Type` header is 
`application/octet-stream`.
 
       Good to know: the file is written at the top of the file system, or in 
`directoryName`. By default it logs in as an app registration, with `clientId`, 
`clientSecret` and `tenantId`, so that app needs a role on the account that 
allows writing, such as Storage Blob Data Contributor. Headers that start with 
`CamelAzureStorageDataLake` are removed from the message first, so they cannot 
change what the Kamelet does. It can log in with an account key (`accountKey`) 
or a SAS token (`sasSi [...]
     required:
@@ -110,6 +110,12 @@ spec:
         pattern: "^[^/'$?#]([^'$?#]*[^/'$?#])?$"
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         file:
           title: File Name
diff --git a/kamelets/azure-storage-files-sink.kamelet.yaml 
b/kamelets/azure-storage-files-sink.kamelet.yaml
index 0b4088539..8660f642d 100644
--- a/kamelets/azure-storage-files-sink.kamelet.yaml
+++ b/kamelets/azure-storage-files-sink.kamelet.yaml
@@ -36,9 +36,9 @@ spec:
 
       Use it to drop files where applications or people that mount the share 
can read them, such as reports or exports. For blob containers, use 
`azure-storage-blob-sink`.
 
-      Input: the body is the content of the file: text, bytes or a stream. A 
Map fails: turn it into JSON text first, for example with 
`json-serialize-action`. The optional `file` header (or `ce-file`) is the name 
of the file; only its last part is used, so `reports/2026/data.csv` is written 
as `data.csv` in `directoryName`. Without it, the file gets a generated unique 
name.
+      Input: the body is the content of the file: text, bytes or a stream. 
Text is turned into bytes before the upload, and the `Content-Type` header is 
set to `application/octet-stream`. A file is passed on as it is, and so is a 
stream, unless stream caching is turned off. A Map fails: turn it into JSON 
text first, for example with `json-serialize-action`. The optional `file` 
header (or `ce-file`) is the name of the file; only its last part is used, so 
`reports/2026/data.csv` is written [...]
 
-      Output: the message is unchanged. The `CamelFileNameProduced` header is 
set to the path of the file in the share.
+      Output: the body is the content of the file, as bytes when it was text, 
and the `Content-Type` header is `application/octet-stream`. The 
`CamelFileNameProduced` header is set to the path of the file in the share.
 
       Good to know: a file with the same name is replaced, unless `fileExist` 
says otherwise. Missing directories are created. Headers that start with 
`CamelFile` or `CamelOverruleFile` are removed from the message first, so they 
cannot change what the Kamelet does.
     required:
@@ -84,6 +84,12 @@ spec:
         enum: ["Override", "Fail", "Ignore"]
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         file:
           title: File Name
diff --git a/kamelets/ceph-sink.kamelet.yaml b/kamelets/ceph-sink.kamelet.yaml
index 5c25f8b9f..0cb19b359 100644
--- a/kamelets/ceph-sink.kamelet.yaml
+++ b/kamelets/ceph-sink.kamelet.yaml
@@ -37,9 +37,9 @@ spec:
 
       Use it to store data in Ceph, such as reports, exports, images or 
received messages to keep as an archive. For Amazon S3, or another 
S3-compatible storage such as MinIO, use `aws-s3-sink` (with 
`overrideEndpoint`, `uriEndpointOverride` and `forcePathStyle` for a storage 
other than AWS).
 
-      Input: the body is the content of the file, as text, bytes or a stream. 
The key (the name of the file in the bucket) comes from the optional `file` 
header, or the `ce-file` header; when neither is set it is `keyName`, or a 
generated unique name when `keyName` is not set either.
+      Input: the body is the content of the file, as text, bytes or a stream. 
Text is turned into bytes before the upload, and the `Content-Type` header is 
set to `application/octet-stream`. A file is passed on as it is, and so is a 
stream, unless stream caching is turned off. The key (the name of the file in 
the bucket) comes from the optional `file` header, or the `ce-file` header; 
when neither is set it is `keyName`, or a generated unique name when `keyName` 
is not set either.
 
-      Output: the body is unchanged. The `CamelAwsS3ETag` header gives the 
ETag of the uploaded file.
+      Output: the body is the content of the file, as bytes when it was text, 
and the `Content-Type` header is `application/octet-stream`. The 
`CamelAwsS3ETag` header gives the ETag of the uploaded file.
 
       Good to know: a file with the same key is overwritten, so with `keyName` 
set and no `file` header each message replaces the previous one. The bucket is 
addressed as part of the host name (such as `my-bucket.ceph.example.com`) 
unless `cephUrl` uses an IP address; set `forcePathStyle` to true when the DNS 
of the gateway has no wildcard name for its buckets. Headers that start with 
`CamelAwsS3` are removed from the message first, so they cannot change what the 
Kamelet does.
     required:
@@ -96,6 +96,12 @@ spec:
         example: reports/latest.csv
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         file:
           title: File Name
diff --git a/kamelets/ftp-sink.kamelet.yaml b/kamelets/ftp-sink.kamelet.yaml
index da7a3ed0d..6723812c4 100644
--- a/kamelets/ftp-sink.kamelet.yaml
+++ b/kamelets/ftp-sink.kamelet.yaml
@@ -109,6 +109,9 @@ spec:
         type: string
         example: "${file:name}.done"
   dataTypes:
+    # No 'default: binary' here on purpose: with stream caching turned off, it 
would read a
+    # stream into memory (a byte[]) before the upload, such as a large file 
from ftp-source or
+    # sftp-source with streamDownload, while the client otherwise sends it as 
it reads it (#3117).
     in:
       headers:
         file:
diff --git a/kamelets/ftp-source.kamelet.yaml b/kamelets/ftp-source.kamelet.yaml
index 6ec9cb2d3..742665374 100644
--- a/kamelets/ftp-source.kamelet.yaml
+++ b/kamelets/ftp-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to collect the files that a partner or a legacy system drops on 
an FTP server, such as orders, invoices or exports. For an encrypted connection 
use `ftps-source`, and for a server you reach with SSH use `sftp-source`.
 
-      Output: the body is the content of the file, as a stream. The `file` and 
`ce-file` headers hold the name of the file, with its path below 
`directoryName` when `recursive` is true, such as `2026/orders.csv`. 
`CamelFileName` holds the same name, and `CamelFileLength` the size of the file 
in bytes.
+      Output: the body is the content of the file, as a stream. `Content-Type` 
is `application/octet-stream`. The `file` and `ce-file` headers hold the name 
of the file, with its path below `directoryName` when `recursive` is true, such 
as `2026/orders.csv`. `CamelFileName` holds the same name, and 
`CamelFileLength` the size of the file in bytes.
 
       Good to know: files are not deleted or moved after they are read, unless 
`delete` is true or `move` is set. A file is read only once while the 
integration runs (`idempotent`), but the files left on the server are all read 
again after a restart; to read each file only once, also across restarts, set 
`move` to a directory such as `.done`, set `delete` to true, or keep the list 
of the files read in a file with `idempotentRepository`. To read only some of 
the files, set `include`, `exc [...]
     required:
@@ -191,6 +191,7 @@ spec:
         example: 30000
   dataTypes:
     out:
+      default: binary
       headers:
         file:
           title: File Name
@@ -208,6 +209,11 @@ spec:
           title: File Size
           description: The size of the file, in bytes.
           type: integer
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: The content of the file as it is, with `Content-Type` 
set to `application/octet-stream`. A stream stays a stream, so `streamDownload` 
still reads a large file without holding it in memory.
+          mediaType: application/octet-stream
   dependencies:
     - "camel:ftp"
     - "camel:kamelet"
diff --git a/kamelets/ftps-sink.kamelet.yaml b/kamelets/ftps-sink.kamelet.yaml
index 1e4182999..d98253452 100644
--- a/kamelets/ftps-sink.kamelet.yaml
+++ b/kamelets/ftps-sink.kamelet.yaml
@@ -130,6 +130,9 @@ spec:
         type: string
         example: PKCS12
   dataTypes:
+    # No 'default: binary' here on purpose: with stream caching turned off, it 
would read a
+    # stream into memory (a byte[]) before the upload, such as a large file 
from ftp-source or
+    # sftp-source with streamDownload, while the client otherwise sends it as 
it reads it (#3117).
     in:
       headers:
         file:
diff --git a/kamelets/ftps-source.kamelet.yaml 
b/kamelets/ftps-source.kamelet.yaml
index 52159e13b..acf152a50 100644
--- a/kamelets/ftps-source.kamelet.yaml
+++ b/kamelets/ftps-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to collect the files that a partner or a legacy system drops on 
an FTPS server, such as orders, invoices or exports. For a server without TLS 
use `ftp-source`, and for a server you reach with SSH use `sftp-source`.
 
-      Output: the body is the content of the file, as a stream. The `file` and 
`ce-file` headers hold the name of the file, with its path below 
`directoryName` when `recursive` is true, such as `2026/orders.csv`. 
`CamelFileName` holds the same name, and `CamelFileLength` the size of the file 
in bytes.
+      Output: the body is the content of the file, as a stream. `Content-Type` 
is `application/octet-stream`. The `file` and `ce-file` headers hold the name 
of the file, with its path below `directoryName` when `recursive` is true, such 
as `2026/orders.csv`. `CamelFileName` holds the same name, and 
`CamelFileLength` the size of the file in bytes.
 
       Good to know: files are not deleted or moved after they are read, unless 
`delete` is true or `move` is set. A file is read only once while the 
integration runs (`idempotent`), but the files left on the server are all read 
again after a restart; to read each file only once, also across restarts, set 
`move` to a directory such as `.done`, set `delete` to true, or keep the list 
of the files read in a file with `idempotentRepository`. To read only some of 
the files, set `include`, `exc [...]
     required:
@@ -212,6 +212,7 @@ spec:
         example: PKCS12
   dataTypes:
     out:
+      default: binary
       headers:
         file:
           title: File Name
@@ -229,6 +230,11 @@ spec:
           title: File Size
           description: The size of the file, in bytes.
           type: integer
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: The content of the file as it is, with `Content-Type` 
set to `application/octet-stream`. A stream stays a stream, so `streamDownload` 
still reads a large file without holding it in memory.
+          mediaType: application/octet-stream
   dependencies:
     - "camel:ftp"
     - "camel:kamelet"
diff --git a/kamelets/google-storage-sink.kamelet.yaml 
b/kamelets/google-storage-sink.kamelet.yaml
index e12563489..3453b7326 100644
--- a/kamelets/google-storage-sink.kamelet.yaml
+++ b/kamelets/google-storage-sink.kamelet.yaml
@@ -36,9 +36,9 @@ spec:
 
       Use it to store data for later use or for other systems, such as 
exported reports, archived events or files received from another system. To 
read the files of a bucket, use `google-storage-source`.
 
-      Input: the body is the content of the file, as text, bytes, a stream or 
a file. Turn structured data such as a Map into JSON text first, for example 
with `json-serialize-action`. The optional `file` header (or `ce-file`) is the 
name of the file in the bucket, with its folders, such as 
`reports/2024-06-01.csv`; without it, the file gets a generated unique name.
+      Input: the body is the content of the file, as text, bytes, a stream or 
a file. Text is turned into bytes before the upload, and the `Content-Type` 
header is set to `application/octet-stream`. A file is passed on as it is, and 
so is a stream, unless stream caching is turned off. Turn structured data such 
as a Map into JSON text first, for example with `json-serialize-action`. The 
optional `file` header (or `ce-file`) is the name of the file in the bucket, 
with its folders, such as  [...]
 
-      Output: when it is used inside a route, the body afterwards describes 
the uploaded file (its bucket, name, size and generation), not its content, and 
the `CamelGoogleCloudStorageObjectName` header holds the name of the file.
+      Output: when it is used inside a route, the body afterwards describes 
the uploaded file (its bucket, name, size and generation), not its content, the 
`Content-Type` header is `application/octet-stream`, and the 
`CamelGoogleCloudStorageObjectName` header holds the name of the file.
 
       Good to know: a file with the same name is overwritten. With 
`objectName`, every message overwrites the same file. The bucket must exist, 
unless `autoCreateBucket` is true; a bucket it creates is in `storageLocation`, 
`US-EAST1` when that is not set. Without `serviceAccountKey`, it logs in with 
the Application Default Credentials of the environment where it runs, or with 
Workload Identity Federation when `useWorkloadIdentityFederation` is true. 
Headers that start with `CamelGoogleC [...]
     required:
@@ -98,6 +98,12 @@ spec:
         pattern: "^[^@\\s]+@[^@\\s]+$"
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         file:
           title: File Name
diff --git a/kamelets/ibm-cos-sink.kamelet.yaml 
b/kamelets/ibm-cos-sink.kamelet.yaml
index 7ae221719..592b770a0 100644
--- a/kamelets/ibm-cos-sink.kamelet.yaml
+++ b/kamelets/ibm-cos-sink.kamelet.yaml
@@ -37,9 +37,9 @@ spec:
 
       Use it to store data for later use or for other systems, such as 
exported reports, archived events or files received from another system. To 
read the files of a bucket, use `ibm-cos-source`.
 
-      Input: the body is the content of the file, as text, bytes, a stream or 
a file. Turn structured data such as a Map into JSON text first, for example 
with `json-serialize-action`. The name of the file (its key) is `keyName` when 
it is set, or then a `CamelIBMCOSKey` header; otherwise the optional `file` 
header (or `ce-file`), with its folders, such as `reports/2024-06-01.csv`; 
otherwise a generated unique name.
+      Input: the body is the content of the file, as text, bytes, a stream or 
a file. Text is turned into bytes before the upload, and the `Content-Type` 
header is set to `application/octet-stream`. A file is passed on as it is, and 
so is a stream, unless stream caching is turned off. Turn structured data such 
as a Map into JSON text first, for example with `json-serialize-action`. The 
name of the file (its key) is `keyName` when it is set, or then a 
`CamelIBMCOSKey` header; otherwise th [...]
 
-      Output: the message is unchanged, with the ETag of the uploaded file in 
the `CamelIBMCOSETag` header.
+      Output: the body is the content of the file, as bytes when it was text, 
and the `Content-Type` header is `application/octet-stream`. The 
`CamelIBMCOSETag` header holds the ETag of the uploaded file.
 
       Good to know: a file with the same name is overwritten. With 
`deleteAfterWrite` set to true, a body that is a local file, such as the file 
of `file-watch-source`, is deleted from the local disk once it has been 
uploaded. The bucket must exist, unless `autoCreateBucket` is true. It logs in 
with an IBM Cloud API key. Headers that start with `CamelIBMCOS`, except 
`CamelIBMCOSKey`, are removed from the message first, so they cannot change 
what the Kamelet does.
     required:
@@ -109,6 +109,12 @@ spec:
         example: STANDARD
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         file:
           title: File Name
diff --git a/kamelets/langchain4j-ingest-file-source.kamelet.yaml 
b/kamelets/langchain4j-ingest-file-source.kamelet.yaml
index 0b7509e70..5aa37872c 100644
--- a/kamelets/langchain4j-ingest-file-source.kamelet.yaml
+++ b/kamelets/langchain4j-ingest-file-source.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
 
       Use it to feed a knowledge base for an AI assistant: put it in front of 
`langchain4j-ingest-sink`, with `tika-extract-text-action` or 
`docling-convert-action` in between for PDF or office documents.
 
-      Output: the body is the file, read as bytes unless `charset` is set. The 
`CamelLangChain4jIngestDocumentId` header is the path of the file relative to 
`directory`, such as `manuals/pump.pdf`, which `langchain4j-ingest-sink` uses 
as the document id. The usual file headers, such as `CamelFileName`, are set 
too.
+      Output: the body is the file, read as bytes unless `charset` is set, and 
the `Content-Type` header is `application/octet-stream`. The 
`CamelLangChain4jIngestDocumentId` header is the path of the file relative to 
`directory`, such as `manuals/pump.pdf`, which `langchain4j-ingest-sink` uses 
as the document id. The usual file headers, such as `CamelFileName`, are set 
too.
 
       Good to know: the files are never deleted or moved. A file is read again 
when its modification time or size changes, and `langchain4j-ingest-sink` then 
adds the new version next to the old one, unless it has an 
`idempotentRepository`, which skips it. The files already read are remembered 
in memory only, by default the last 1000, so after a restart every file is read 
again; set `idempotentRepository` to keep them. A file that is still being 
copied in is read only once it stops chang [...]
     required:
@@ -97,6 +97,12 @@ spec:
         example: "#bean:readFiles"
   dataTypes:
     out:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The file, which is not read into memory here."
+          mediaType: application/octet-stream
       headers:
         CamelLangChain4jIngestDocumentId:
           title: Document ID
diff --git a/kamelets/scp-sink.kamelet.yaml b/kamelets/scp-sink.kamelet.yaml
index e6dbe767a..055ce25c8 100644
--- a/kamelets/scp-sink.kamelet.yaml
+++ b/kamelets/scp-sink.kamelet.yaml
@@ -37,9 +37,9 @@ spec:
 
       Use it to copy files to a server you reach with SSH that does not offer 
SFTP, for example to drop a configuration or a report on a host. To append to 
or keep existing files, or to create the directory when it is missing, use 
`sftp-sink` instead.
 
-      Input: the body is the content of the file, as text, bytes or a stream. 
The name of the file comes from the `CamelFileName` header, which may hold 
subdirectories, such as `reports/data.csv`; without it, a unique name is 
generated.
+      Input: the body is the content of the file, as text, bytes or a stream. 
Text is turned into bytes before the copy, and the `Content-Type` header is set 
to `application/octet-stream`. A file is passed on as it is, and so is a 
stream, unless stream caching is turned off. The name of the file comes from 
the `CamelFileName` header, which may hold subdirectories, such as 
`reports/data.csv`; without it, a unique name is generated.
 
-      Output: the message is unchanged. The `CamelFileNameProduced` header is 
set to the path of the file on the server.
+      Output: the body is the content of the file, as bytes when it was text, 
and the `Content-Type` header is `application/octet-stream`. The 
`CamelFileNameProduced` header is set to the path of the file on the server.
 
       Good to know: files are written in `directoryName`, or else in the home 
directory of `username`, with the rights of that user, and a file with the same 
name is replaced. `directoryName` must exist: when it does not, every file is 
written as a file with the name of the directory. A file name that points 
outside the directory fails the message. The key of the server is checked 
against the file in `knownHostsUri`, or else `~/.ssh/known_hosts` of the user 
that runs the integration, unl [...]
     required:
@@ -110,6 +110,12 @@ spec:
         example: "640"
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         CamelFileName:
           title: File Name
diff --git a/kamelets/sftp-sink.kamelet.yaml b/kamelets/sftp-sink.kamelet.yaml
index bc9d6ae1a..5eccf42c8 100644
--- a/kamelets/sftp-sink.kamelet.yaml
+++ b/kamelets/sftp-sink.kamelet.yaml
@@ -153,6 +153,9 @@ spec:
         type: integer
         example: 30000
   dataTypes:
+    # No 'default: binary' here on purpose: with stream caching turned off, it 
would read a
+    # stream into memory (a byte[]) before the upload, such as a large file 
from ftp-source or
+    # sftp-source with streamDownload, while the client otherwise sends it as 
it reads it (#3117).
     in:
       headers:
         file:
diff --git a/kamelets/sftp-source.kamelet.yaml 
b/kamelets/sftp-source.kamelet.yaml
index ba36caac9..8a9f5c6f6 100644
--- a/kamelets/sftp-source.kamelet.yaml
+++ b/kamelets/sftp-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to collect the files that a partner or another system drops on a 
server you reach with SSH, such as orders, invoices or exports. For an FTP 
server use `ftp-source` or `ftps-source`.
 
-      Output: the body is the content of the file, as bytes, or as a stream 
when `streamDownload` is true. The `file` and `ce-file` headers hold the name 
of the file, with its path below `directoryName` when `recursive` is true, such 
as `2026/orders.csv`. `CamelFileName` holds the same name, and 
`CamelFileLength` the size of the file in bytes.
+      Output: the body is the content of the file, as bytes, or as a stream 
when `streamDownload` is true. `Content-Type` is `application/octet-stream`. 
The `file` and `ce-file` headers hold the name of the file, with its path below 
`directoryName` when `recursive` is true, such as `2026/orders.csv`. 
`CamelFileName` holds the same name, and `CamelFileLength` the size of the file 
in bytes.
 
       Good to know: files are not deleted or moved after they are read, unless 
`delete` is true or `move` is set. A file is read only once while the 
integration runs (`idempotent`), but the files left on the server are all read 
again after a restart; to read each file only once, also across restarts, set 
`move` to a directory such as `.done`, set `delete` to true, or keep the list 
of the files read in a file with `idempotentRepository`. To read only some of 
the files, set `include`, `exc [...]
     required:
@@ -225,6 +225,7 @@ spec:
         example: 30000
   dataTypes:
     out:
+      default: binary
       headers:
         file:
           title: File Name
@@ -242,6 +243,11 @@ spec:
           title: File Size
           description: The size of the file, in bytes.
           type: integer
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: The content of the file as it is, with `Content-Type` 
set to `application/octet-stream`. A stream stays a stream, so `streamDownload` 
still reads a large file without holding it in memory.
+          mediaType: application/octet-stream
   dependencies:
     - "camel:ftp"
     - "camel:kamelet"
diff --git 
a/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json 
b/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
index d40564a46..8a17a7dce 100644
--- a/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
+++ b/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
@@ -205,7 +205,7 @@
     "supportLevel" : "Stable",
     "title" : "AWS S3 Sink",
     "summary" : "Uploads each message as a file (object) to an Amazon S3 
bucket, under a key (file name) taken from a header, the `keyName` option, or a 
generated ID.",
-    "description" : "Uploads each message as a file (object) to an Amazon S3 
bucket, under a key (file name) taken from a header, the `keyName` option, or a 
generated ID.\n\nUse it to store data in S3 for other systems or for archiving, 
such as exported records, received documents or events. To collect many small 
messages into a few large files, use `aws-s3-streaming-upload-sink`.\n\nInput: 
the body is the content of the file, as text, bytes, a stream or a file. Turn 
structured data such [...]
+    "description" : "Uploads each message as a file (object) to an Amazon S3 
bucket, under a key (file name) taken from a header, the `keyName` option, or a 
generated ID.\n\nUse it to store data in S3 for other systems or for archiving, 
such as exported records, received documents or events. To collect many small 
messages into a few large files, use `aws-s3-streaming-upload-sink`.\n\nInput: 
the body is the content of the file, as text, bytes, a stream or a file. Text 
is turned into bytes [...]
     "group" : "AWS S3",
     "namespace" : "AWS",
     "provider" : "Apache Software Foundation"
@@ -405,7 +405,7 @@
     "supportLevel" : "Stable",
     "title" : "Azure Storage Blob Append Sink",
     "summary" : "Adds each message at the end of an append blob in Azure Blob 
Storage, named after the `file` header, and creates the blob when it does not 
exist yet.",
-    "description" : "Adds each message at the end of an append blob in Azure 
Blob Storage, named after the `file` header, and creates the blob when it does 
not exist yet.\n\nUse it to collect log lines, audit records or CSV rows from 
many messages into one growing blob. To write each message as a blob of its 
own, use `azure-storage-blob-sink`.\n\nInput: the body is the data to add: 
text, bytes or a stream. It is added as it is, so end each line with a line 
break yourself. Turn structured [...]
+    "description" : "Adds each message at the end of an append blob in Azure 
Blob Storage, named after the `file` header, and creates the blob when it does 
not exist yet.\n\nUse it to collect log lines, audit records or CSV rows from 
many messages into one growing blob. To write each message as a blob of its 
own, use `azure-storage-blob-sink`.\n\nInput: the body is the data to add: 
text, bytes or a stream. Text is turned into bytes before it is added, and the 
`Content-Type` header is set [...]
     "group" : "Azure Storage Blob",
     "namespace" : "Azure",
     "provider" : "Apache Software Foundation"
@@ -425,7 +425,7 @@
     "supportLevel" : "Stable",
     "title" : "Azure Storage Blob Sink",
     "summary" : "Uploads each message as a file (a block blob) to a container 
in Azure Blob Storage, named after the `file` header.",
-    "description" : "Uploads each message as a file (a block blob) to a 
container in Azure Blob Storage, named after the `file` header.\n\nUse it to 
store documents, exports or event payloads in Azure, for other applications or 
for archiving. To add each message at the end of one growing blob, such as a 
log, use `azure-storage-blob-append-sink`.\n\nInput: the body is the content of 
the blob: text, bytes or a stream. Turn structured data such as a Map into JSON 
text first, for example wit [...]
+    "description" : "Uploads each message as a file (a block blob) to a 
container in Azure Blob Storage, named after the `file` header.\n\nUse it to 
store documents, exports or event payloads in Azure, for other applications or 
for archiving. To add each message at the end of one growing blob, such as a 
log, use `azure-storage-blob-append-sink`.\n\nInput: the body is the content of 
the blob: text, bytes or a stream. Text is turned into bytes before the upload, 
and the `Content-Type` head [...]
     "group" : "Azure Storage Blob",
     "namespace" : "Azure",
     "provider" : "Apache Software Foundation"
@@ -445,7 +445,7 @@
     "supportLevel" : "Stable",
     "title" : "Azure Storage Blob Data Lake Sink",
     "summary" : "Uploads each message as a file to a file system in Azure Data 
Lake Storage Gen2, named after the `file` header.",
-    "description" : "Uploads each message as a file to a file system in Azure 
Data Lake Storage Gen2, named after the `file` header.\n\nUse it to land data 
for analytics, such as exports, events or reports, in a data lake. For plain 
blob containers, use `azure-storage-blob-sink`.\n\nInput: the body is the 
content of the file: text, bytes or a stream. A Map fails: turn it into JSON 
text first, for example with `json-serialize-action`. The optional `file` 
header (or `ce-file`) is the name  [...]
+    "description" : "Uploads each message as a file to a file system in Azure 
Data Lake Storage Gen2, named after the `file` header.\n\nUse it to land data 
for analytics, such as exports, events or reports, in a data lake. For plain 
blob containers, use `azure-storage-blob-sink`.\n\nInput: the body is the 
content of the file: text, bytes or a stream. Text is turned into bytes before 
the upload, and the `Content-Type` header is set to `application/octet-stream`. 
A file is passed on as it  [...]
     "group" : "Azure Storage Blob Data Lake",
     "namespace" : "Azure",
     "provider" : "Apache Software Foundation"
@@ -465,7 +465,7 @@
     "supportLevel" : "Stable",
     "title" : "Azure Storage Files Sink",
     "summary" : "Uploads each message as a file to a directory of a file share 
in Azure Files, named after the `file` header.",
-    "description" : "Uploads each message as a file to a directory of a file 
share in Azure Files, named after the `file` header.\n\nUse it to drop files 
where applications or people that mount the share can read them, such as 
reports or exports. For blob containers, use 
`azure-storage-blob-sink`.\n\nInput: the body is the content of the file: text, 
bytes or a stream. A Map fails: turn it into JSON text first, for example with 
`json-serialize-action`. The optional `file` header (or `ce-f [...]
+    "description" : "Uploads each message as a file to a directory of a file 
share in Azure Files, named after the `file` header.\n\nUse it to drop files 
where applications or people that mount the share can read them, such as 
reports or exports. For blob containers, use 
`azure-storage-blob-sink`.\n\nInput: the body is the content of the file: text, 
bytes or a stream. Text is turned into bytes before the upload, and the 
`Content-Type` header is set to `application/octet-stream`. A file i [...]
     "group" : "Azure Storage Blob",
     "namespace" : "Azure",
     "provider" : "Apache Software Foundation"
@@ -525,7 +525,7 @@
     "supportLevel" : "Stable",
     "title" : "Ceph Sink",
     "summary" : "Uploads each message as a file (object) to a bucket of a Ceph 
Object Gateway, the S3-compatible storage of Ceph.",
-    "description" : "Uploads each message as a file (object) to a bucket of a 
Ceph Object Gateway, the S3-compatible storage of Ceph.\n\nUse it to store data 
in Ceph, such as reports, exports, images or received messages to keep as an 
archive. For Amazon S3, or another S3-compatible storage such as MinIO, use 
`aws-s3-sink` (with `overrideEndpoint`, `uriEndpointOverride` and 
`forcePathStyle` for a storage other than AWS).\n\nInput: the body is the 
content of the file, as text, bytes or a  [...]
+    "description" : "Uploads each message as a file (object) to a bucket of a 
Ceph Object Gateway, the S3-compatible storage of Ceph.\n\nUse it to store data 
in Ceph, such as reports, exports, images or received messages to keep as an 
archive. For Amazon S3, or another S3-compatible storage such as MinIO, use 
`aws-s3-sink` (with `overrideEndpoint`, `uriEndpointOverride` and 
`forcePathStyle` for a storage other than AWS).\n\nInput: the body is the 
content of the file, as text, bytes or a  [...]
     "group" : "Ceph",
     "namespace" : "Cloud",
     "provider" : "Apache Software Foundation"
@@ -795,7 +795,7 @@
     "supportLevel" : "Stable",
     "title" : "FTP Source",
     "summary" : "Reads the files in a directory on an FTP server, one message 
per file, and by default leaves them on the server.",
-    "description" : "Reads the files in a directory on an FTP server, one 
message per file, and by default leaves them on the server.\n\nUse it to 
collect the files that a partner or a legacy system drops on an FTP server, 
such as orders, invoices or exports. For an encrypted connection use 
`ftps-source`, and for a server you reach with SSH use 
`sftp-source`.\n\nOutput: the body is the content of the file, as a stream. The 
`file` and `ce-file` headers hold the name of the file, with its  [...]
+    "description" : "Reads the files in a directory on an FTP server, one 
message per file, and by default leaves them on the server.\n\nUse it to 
collect the files that a partner or a legacy system drops on an FTP server, 
such as orders, invoices or exports. For an encrypted connection use 
`ftps-source`, and for a server you reach with SSH use 
`sftp-source`.\n\nOutput: the body is the content of the file, as a stream. 
`Content-Type` is `application/octet-stream`. The `file` and `ce-file [...]
     "group" : "FTP",
     "namespace" : "File",
     "provider" : "Apache Software Foundation"
@@ -815,7 +815,7 @@
     "supportLevel" : "Stable",
     "title" : "FTPS Source",
     "summary" : "Reads the files in a directory on an FTPS server (FTP with 
TLS encryption), one message per file, and by default leaves them on the 
server.",
-    "description" : "Reads the files in a directory on an FTPS server (FTP 
with TLS encryption), one message per file, and by default leaves them on the 
server.\n\nUse it to collect the files that a partner or a legacy system drops 
on an FTPS server, such as orders, invoices or exports. For a server without 
TLS use `ftp-source`, and for a server you reach with SSH use 
`sftp-source`.\n\nOutput: the body is the content of the file, as a stream. The 
`file` and `ce-file` headers hold the nam [...]
+    "description" : "Reads the files in a directory on an FTPS server (FTP 
with TLS encryption), one message per file, and by default leaves them on the 
server.\n\nUse it to collect the files that a partner or a legacy system drops 
on an FTPS server, such as orders, invoices or exports. For a server without 
TLS use `ftp-source`, and for a server you reach with SSH use 
`sftp-source`.\n\nOutput: the body is the content of the file, as a stream. 
`Content-Type` is `application/octet-stream`. [...]
     "group" : "FTP",
     "namespace" : "File",
     "provider" : "Apache Software Foundation"
@@ -955,7 +955,7 @@
     "supportLevel" : "Stable",
     "title" : "Google Storage Sink",
     "summary" : "Uploads each message as a file (object) to a Google Cloud 
Storage bucket.",
-    "description" : "Uploads each message as a file (object) to a Google Cloud 
Storage bucket.\n\nUse it to store data for later use or for other systems, 
such as exported reports, archived events or files received from another 
system. To read the files of a bucket, use `google-storage-source`.\n\nInput: 
the body is the content of the file, as text, bytes, a stream or a file. Turn 
structured data such as a Map into JSON text first, for example with 
`json-serialize-action`. The optional ` [...]
+    "description" : "Uploads each message as a file (object) to a Google Cloud 
Storage bucket.\n\nUse it to store data for later use or for other systems, 
such as exported reports, archived events or files received from another 
system. To read the files of a bucket, use `google-storage-source`.\n\nInput: 
the body is the content of the file, as text, bytes, a stream or a file. Text 
is turned into bytes before the upload, and the `Content-Type` header is set to 
`application/octet-stream`.  [...]
     "group" : "Google Storage",
     "namespace" : "GCP",
     "provider" : "Apache Software Foundation"
@@ -1045,7 +1045,7 @@
     "supportLevel" : "Preview",
     "title" : "IBM Cloud Object Storage Sink",
     "summary" : "Uploads each message as a file (object) to a bucket in IBM 
Cloud Object Storage.",
-    "description" : "Uploads each message as a file (object) to a bucket in 
IBM Cloud Object Storage.\n\nUse it to store data for later use or for other 
systems, such as exported reports, archived events or files received from 
another system. To read the files of a bucket, use `ibm-cos-source`.\n\nInput: 
the body is the content of the file, as text, bytes, a stream or a file. Turn 
structured data such as a Map into JSON text first, for example with 
`json-serialize-action`. The name of th [...]
+    "description" : "Uploads each message as a file (object) to a bucket in 
IBM Cloud Object Storage.\n\nUse it to store data for later use or for other 
systems, such as exported reports, archived events or files received from 
another system. To read the files of a bucket, use `ibm-cos-source`.\n\nInput: 
the body is the content of the file, as text, bytes, a stream or a file. Text 
is turned into bytes before the upload, and the `Content-Type` header is set to 
`application/octet-stream`.  [...]
     "group" : "IBM Cloud Object Storage",
     "namespace" : "IBM",
     "provider" : "Apache Software Foundation"
@@ -1345,7 +1345,7 @@
     "supportLevel" : "Preview",
     "title" : "LangChain4j Ingest File Source",
     "summary" : "Reads the documents in a directory and its subdirectories, 
one message per file, leaves them in place, and reads a file again when it 
changes.",
-    "description" : "Reads the documents in a directory and its 
subdirectories, one message per file, leaves them in place, and reads a file 
again when it changes.\n\nUse it to feed a knowledge base for an AI assistant: 
put it in front of `langchain4j-ingest-sink`, with `tika-extract-text-action` 
or `docling-convert-action` in between for PDF or office documents.\n\nOutput: 
the body is the file, read as bytes unless `charset` is set. The 
`CamelLangChain4jIngestDocumentId` header is the p [...]
+    "description" : "Reads the documents in a directory and its 
subdirectories, one message per file, leaves them in place, and reads a file 
again when it changes.\n\nUse it to feed a knowledge base for an AI assistant: 
put it in front of `langchain4j-ingest-sink`, with `tika-extract-text-action` 
or `docling-convert-action` in between for PDF or office documents.\n\nOutput: 
the body is the file, read as bytes unless `charset` is set, and the 
`Content-Type` header is `application/octet-st [...]
     "group" : "LangChain4j Ingest",
     "namespace" : "AI",
     "provider" : "Apache Software Foundation"
@@ -1835,7 +1835,7 @@
     "supportLevel" : "Stable",
     "title" : "SCP Sink",
     "summary" : "Copies each message as a file to a directory on a remote 
server, with SCP (secure copy) over an SSH connection.",
-    "description" : "Copies each message as a file to a directory on a remote 
server, with SCP (secure copy) over an SSH connection.\n\nUse it to copy files 
to a server you reach with SSH that does not offer SFTP, for example to drop a 
configuration or a report on a host. To append to or keep existing files, or to 
create the directory when it is missing, use `sftp-sink` instead.\n\nInput: the 
body is the content of the file, as text, bytes or a stream. The name of the 
file comes from the [...]
+    "description" : "Copies each message as a file to a directory on a remote 
server, with SCP (secure copy) over an SSH connection.\n\nUse it to copy files 
to a server you reach with SSH that does not offer SFTP, for example to drop a 
configuration or a report on a host. To append to or keep existing files, or to 
create the directory when it is missing, use `sftp-sink` instead.\n\nInput: the 
body is the content of the file, as text, bytes or a stream. Text is turned 
into bytes before th [...]
     "group" : "SCP",
     "namespace" : "File",
     "provider" : "Apache Software Foundation"
@@ -1875,7 +1875,7 @@
     "supportLevel" : "Stable",
     "title" : "SFTP Source",
     "summary" : "Reads the files in a directory on an SFTP server, over an 
encrypted SSH connection, one message per file, and by default leaves them on 
the server.",
-    "description" : "Reads the files in a directory on an SFTP server, over an 
encrypted SSH connection, one message per file, and by default leaves them on 
the server.\n\nUse it to collect the files that a partner or another system 
drops on a server you reach with SSH, such as orders, invoices or exports. For 
an FTP server use `ftp-source` or `ftps-source`.\n\nOutput: the body is the 
content of the file, as bytes, or as a stream when `streamDownload` is true. 
The `file` and `ce-file` he [...]
+    "description" : "Reads the files in a directory on an SFTP server, over an 
encrypted SSH connection, one message per file, and by default leaves them on 
the server.\n\nUse it to collect the files that a partner or another system 
drops on a server you reach with SSH, such as orders, invoices or exports. For 
an FTP server use `ftp-source` or `ftps-source`.\n\nOutput: the body is the 
content of the file, as bytes, or as a stream when `streamDownload` is true. 
`Content-Type` is `applicat [...]
     "group" : "FTP",
     "namespace" : "File",
     "provider" : "Apache Software Foundation"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/aws-s3-sink.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/aws-s3-sink.kamelet.yaml
index fc295bae3..72746d6f9 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/aws-s3-sink.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/aws-s3-sink.kamelet.yaml
@@ -37,9 +37,9 @@ spec:
 
       Use it to store data in S3 for other systems or for archiving, such as 
exported records, received documents or events. To collect many small messages 
into a few large files, use `aws-s3-streaming-upload-sink`.
 
-      Input: the body is the content of the file, as text, bytes, a stream or 
a file. Turn structured data such as a Map into JSON text first, for example 
with `json-serialize-action`. The optional `file` header (or `ce-file`) is the 
key, the path of the file in the bucket, such as `orders/order-1.json`. Without 
it, and without `keyName`, the key is a generated unique ID. The optional 
`CamelAwsS3ContentType` header sets the content type of the file; the 
`Content-Type` header is not used, [...]
+      Input: the body is the content of the file, as text, bytes, a stream or 
a file. Text is turned into bytes before the upload, and the `Content-Type` 
header is set to `application/octet-stream`. A file is passed on as it is, and 
so is a stream, unless stream caching is turned off. Turn structured data such 
as a Map into JSON text first, for example with `json-serialize-action`. The 
optional `file` header (or `ce-file`) is the key, the path of the file in the 
bucket, such as `orders/o [...]
 
-      Output: the message is unchanged. The `CamelAwsS3Key` and 
`CamelAwsS3ETag` headers give the key and the ETag of the uploaded file.
+      Output: the body is the content of the file, as bytes when it was text, 
and the `Content-Type` header is `application/octet-stream`. The 
`CamelAwsS3Key` and `CamelAwsS3ETag` headers give the key and the ETag of the 
uploaded file.
 
       Good to know: a file with the same key is replaced without warning, 
unless `conditionalWritesEnabled` is true: then the upload of a key that exists 
already fails. When `keyName` is set, the `file` header is ignored and every 
message replaces the same file. To copy files from `aws-s3-source` under their 
own names, set the `file` header from its `CamelAwsS3Key` header first. It also 
works with S3-compatible storage, such as MinIO, through `overrideEndpoint`, 
`uriEndpointOverride` and [...]
     required:
@@ -176,6 +176,12 @@ spec:
         type: boolean
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         file:
           title: File Name
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-append-sink.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-append-sink.kamelet.yaml
index cb41944fa..badaa2a07 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-append-sink.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-append-sink.kamelet.yaml
@@ -37,9 +37,9 @@ spec:
 
       Use it to collect log lines, audit records or CSV rows from many 
messages into one growing blob. To write each message as a blob of its own, use 
`azure-storage-blob-sink`.
 
-      Input: the body is the data to add: text, bytes or a stream. It is added 
as it is, so end each line with a line break yourself. Turn structured data 
such as a Map into JSON text first, for example with `json-serialize-action`. 
The `file` header (or `ce-file`) is the name of the blob, such as 
`logs/app.log`. Without it, each message goes to a new blob with a generated 
unique name.
+      Input: the body is the data to add: text, bytes or a stream. Text is 
turned into bytes before it is added, and the `Content-Type` header is set to 
`application/octet-stream`. A file is passed on as it is, and so is a stream, 
unless stream caching is turned off. It is added as it is, so end each line 
with a line break yourself. Turn structured data such as a Map into JSON text 
first, for example with `json-serialize-action`. The `file` header (or 
`ce-file`) is the name of the blob,  [...]
 
-      Output: the body afterwards is `true`, and headers such as 
`CamelAzureStorageBlobAppendOffset` and 
`CamelAzureStorageBlobCommittedBlockCount` describe the append.
+      Output: the body afterwards is `true`, the `Content-Type` header is 
`application/octet-stream`, and headers such as 
`CamelAzureStorageBlobAppendOffset` and 
`CamelAzureStorageBlobCommittedBlockCount` describe the append.
 
       Good to know: the container must exist: a missing container fails the 
message. A name that is already used by a block blob, such as one written by 
`azure-storage-blob-sink`, fails the message too. Headers that start with 
`CamelAzureStorageBlob` are removed from the message first, so they cannot 
change what the Kamelet does.
     required:
@@ -103,6 +103,12 @@ spec:
         enum: ["SHARED_ACCOUNT_KEY", "AZURE_SAS", "AZURE_IDENTITY", 
"CLIENT_SECRET"]
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         file:
           title: File Name
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-sink.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-sink.kamelet.yaml
index 2204182b9..304be1163 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-sink.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-blob-sink.kamelet.yaml
@@ -37,9 +37,9 @@ spec:
 
       Use it to store documents, exports or event payloads in Azure, for other 
applications or for archiving. To add each message at the end of one growing 
blob, such as a log, use `azure-storage-blob-append-sink`.
 
-      Input: the body is the content of the blob: text, bytes or a stream. 
Turn structured data such as a Map into JSON text first, for example with 
`json-serialize-action`. The optional `file` header (or `ce-file`) is the name 
of the blob, such as `reports/2026-05.csv`; a `/` in it puts the blob in a 
virtual folder. Without it, the blob gets a generated unique name.
+      Input: the body is the content of the blob: text, bytes or a stream. 
Text is turned into bytes before the upload, and the `Content-Type` header is 
set to `application/octet-stream`. A file is passed on as it is, and so is a 
stream, unless stream caching is turned off. Turn structured data such as a Map 
into JSON text first, for example with `json-serialize-action`. The optional 
`file` header (or `ce-file`) is the name of the blob, such as 
`reports/2026-05.csv`; a `/` in it puts the [...]
 
-      Output: the body afterwards is `true`, and headers such as 
`CamelAzureStorageBlobETag` and `CamelAzureStorageBlobLastModified` describe 
the uploaded blob.
+      Output: the body afterwards is `true`, the `Content-Type` header is 
`application/octet-stream`, and headers such as `CamelAzureStorageBlobETag` and 
`CamelAzureStorageBlobLastModified` describe the uploaded blob.
 
       Good to know: a blob with the same name is replaced. The container must 
exist: a missing container fails the message. The name comes only from `file` 
or `ce-file`: to copy blobs from `azure-storage-blob-source` and keep their 
names, set `file` from its `CamelAzureStorageBlobBlobName` header first. 
Headers that start with `CamelAzureStorageBlob` are removed from the message 
first, so they cannot change what the Kamelet does.
     required:
@@ -103,6 +103,12 @@ spec:
         enum: ["SHARED_ACCOUNT_KEY", "AZURE_SAS", "AZURE_IDENTITY", 
"CLIENT_SECRET"]
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         file:
           title: File Name
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-datalake-sink.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-datalake-sink.kamelet.yaml
index d2d795c93..921a64cba 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-datalake-sink.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-datalake-sink.kamelet.yaml
@@ -37,9 +37,9 @@ spec:
 
       Use it to land data for analytics, such as exports, events or reports, 
in a data lake. For plain blob containers, use `azure-storage-blob-sink`.
 
-      Input: the body is the content of the file: text, bytes or a stream. A 
Map fails: turn it into JSON text first, for example with 
`json-serialize-action`. The optional `file` header (or `ce-file`) is the name 
of the file, such as `sales-2026-05.csv`. Without it, the file gets a generated 
unique name.
+      Input: the body is the content of the file: text, bytes or a stream. 
Text is turned into bytes before the upload, and the `Content-Type` header is 
set to `application/octet-stream`. A file is passed on as it is, and so is a 
stream, unless stream caching is turned off. A Map fails: turn it into JSON 
text first, for example with `json-serialize-action`. The optional `file` 
header (or `ce-file`) is the name of the file, such as `sales-2026-05.csv`. 
Without it, the file gets a generate [...]
 
-      Output: the body afterwards is `true`.
+      Output: the body afterwards is `true`, and the `Content-Type` header is 
`application/octet-stream`.
 
       Good to know: the file is written at the top of the file system, or in 
`directoryName`. By default it logs in as an app registration, with `clientId`, 
`clientSecret` and `tenantId`, so that app needs a role on the account that 
allows writing, such as Storage Blob Data Contributor. Headers that start with 
`CamelAzureStorageDataLake` are removed from the message first, so they cannot 
change what the Kamelet does. It can log in with an account key (`accountKey`) 
or a SAS token (`sasSi [...]
     required:
@@ -110,6 +110,12 @@ spec:
         pattern: "^[^/'$?#]([^'$?#]*[^/'$?#])?$"
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         file:
           title: File Name
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-sink.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-sink.kamelet.yaml
index 0b4088539..8660f642d 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-sink.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/azure-storage-files-sink.kamelet.yaml
@@ -36,9 +36,9 @@ spec:
 
       Use it to drop files where applications or people that mount the share 
can read them, such as reports or exports. For blob containers, use 
`azure-storage-blob-sink`.
 
-      Input: the body is the content of the file: text, bytes or a stream. A 
Map fails: turn it into JSON text first, for example with 
`json-serialize-action`. The optional `file` header (or `ce-file`) is the name 
of the file; only its last part is used, so `reports/2026/data.csv` is written 
as `data.csv` in `directoryName`. Without it, the file gets a generated unique 
name.
+      Input: the body is the content of the file: text, bytes or a stream. 
Text is turned into bytes before the upload, and the `Content-Type` header is 
set to `application/octet-stream`. A file is passed on as it is, and so is a 
stream, unless stream caching is turned off. A Map fails: turn it into JSON 
text first, for example with `json-serialize-action`. The optional `file` 
header (or `ce-file`) is the name of the file; only its last part is used, so 
`reports/2026/data.csv` is written [...]
 
-      Output: the message is unchanged. The `CamelFileNameProduced` header is 
set to the path of the file in the share.
+      Output: the body is the content of the file, as bytes when it was text, 
and the `Content-Type` header is `application/octet-stream`. The 
`CamelFileNameProduced` header is set to the path of the file in the share.
 
       Good to know: a file with the same name is replaced, unless `fileExist` 
says otherwise. Missing directories are created. Headers that start with 
`CamelFile` or `CamelOverruleFile` are removed from the message first, so they 
cannot change what the Kamelet does.
     required:
@@ -84,6 +84,12 @@ spec:
         enum: ["Override", "Fail", "Ignore"]
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         file:
           title: File Name
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/ceph-sink.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/ceph-sink.kamelet.yaml
index 5c25f8b9f..0cb19b359 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/ceph-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/ceph-sink.kamelet.yaml
@@ -37,9 +37,9 @@ spec:
 
       Use it to store data in Ceph, such as reports, exports, images or 
received messages to keep as an archive. For Amazon S3, or another 
S3-compatible storage such as MinIO, use `aws-s3-sink` (with 
`overrideEndpoint`, `uriEndpointOverride` and `forcePathStyle` for a storage 
other than AWS).
 
-      Input: the body is the content of the file, as text, bytes or a stream. 
The key (the name of the file in the bucket) comes from the optional `file` 
header, or the `ce-file` header; when neither is set it is `keyName`, or a 
generated unique name when `keyName` is not set either.
+      Input: the body is the content of the file, as text, bytes or a stream. 
Text is turned into bytes before the upload, and the `Content-Type` header is 
set to `application/octet-stream`. A file is passed on as it is, and so is a 
stream, unless stream caching is turned off. The key (the name of the file in 
the bucket) comes from the optional `file` header, or the `ce-file` header; 
when neither is set it is `keyName`, or a generated unique name when `keyName` 
is not set either.
 
-      Output: the body is unchanged. The `CamelAwsS3ETag` header gives the 
ETag of the uploaded file.
+      Output: the body is the content of the file, as bytes when it was text, 
and the `Content-Type` header is `application/octet-stream`. The 
`CamelAwsS3ETag` header gives the ETag of the uploaded file.
 
       Good to know: a file with the same key is overwritten, so with `keyName` 
set and no `file` header each message replaces the previous one. The bucket is 
addressed as part of the host name (such as `my-bucket.ceph.example.com`) 
unless `cephUrl` uses an IP address; set `forcePathStyle` to true when the DNS 
of the gateway has no wildcard name for its buckets. Headers that start with 
`CamelAwsS3` are removed from the message first, so they cannot change what the 
Kamelet does.
     required:
@@ -96,6 +96,12 @@ spec:
         example: reports/latest.csv
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         file:
           title: File Name
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/ftp-sink.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/ftp-sink.kamelet.yaml
index da7a3ed0d..6723812c4 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/ftp-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/ftp-sink.kamelet.yaml
@@ -109,6 +109,9 @@ spec:
         type: string
         example: "${file:name}.done"
   dataTypes:
+    # No 'default: binary' here on purpose: with stream caching turned off, it 
would read a
+    # stream into memory (a byte[]) before the upload, such as a large file 
from ftp-source or
+    # sftp-source with streamDownload, while the client otherwise sends it as 
it reads it (#3117).
     in:
       headers:
         file:
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/ftp-source.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/ftp-source.kamelet.yaml
index 6ec9cb2d3..742665374 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/ftp-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/ftp-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to collect the files that a partner or a legacy system drops on 
an FTP server, such as orders, invoices or exports. For an encrypted connection 
use `ftps-source`, and for a server you reach with SSH use `sftp-source`.
 
-      Output: the body is the content of the file, as a stream. The `file` and 
`ce-file` headers hold the name of the file, with its path below 
`directoryName` when `recursive` is true, such as `2026/orders.csv`. 
`CamelFileName` holds the same name, and `CamelFileLength` the size of the file 
in bytes.
+      Output: the body is the content of the file, as a stream. `Content-Type` 
is `application/octet-stream`. The `file` and `ce-file` headers hold the name 
of the file, with its path below `directoryName` when `recursive` is true, such 
as `2026/orders.csv`. `CamelFileName` holds the same name, and 
`CamelFileLength` the size of the file in bytes.
 
       Good to know: files are not deleted or moved after they are read, unless 
`delete` is true or `move` is set. A file is read only once while the 
integration runs (`idempotent`), but the files left on the server are all read 
again after a restart; to read each file only once, also across restarts, set 
`move` to a directory such as `.done`, set `delete` to true, or keep the list 
of the files read in a file with `idempotentRepository`. To read only some of 
the files, set `include`, `exc [...]
     required:
@@ -191,6 +191,7 @@ spec:
         example: 30000
   dataTypes:
     out:
+      default: binary
       headers:
         file:
           title: File Name
@@ -208,6 +209,11 @@ spec:
           title: File Size
           description: The size of the file, in bytes.
           type: integer
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: The content of the file as it is, with `Content-Type` 
set to `application/octet-stream`. A stream stays a stream, so `streamDownload` 
still reads a large file without holding it in memory.
+          mediaType: application/octet-stream
   dependencies:
     - "camel:ftp"
     - "camel:kamelet"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/ftps-sink.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/ftps-sink.kamelet.yaml
index 1e4182999..d98253452 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/ftps-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/ftps-sink.kamelet.yaml
@@ -130,6 +130,9 @@ spec:
         type: string
         example: PKCS12
   dataTypes:
+    # No 'default: binary' here on purpose: with stream caching turned off, it 
would read a
+    # stream into memory (a byte[]) before the upload, such as a large file 
from ftp-source or
+    # sftp-source with streamDownload, while the client otherwise sends it as 
it reads it (#3117).
     in:
       headers:
         file:
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/ftps-source.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/ftps-source.kamelet.yaml
index 52159e13b..acf152a50 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/ftps-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/ftps-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to collect the files that a partner or a legacy system drops on 
an FTPS server, such as orders, invoices or exports. For a server without TLS 
use `ftp-source`, and for a server you reach with SSH use `sftp-source`.
 
-      Output: the body is the content of the file, as a stream. The `file` and 
`ce-file` headers hold the name of the file, with its path below 
`directoryName` when `recursive` is true, such as `2026/orders.csv`. 
`CamelFileName` holds the same name, and `CamelFileLength` the size of the file 
in bytes.
+      Output: the body is the content of the file, as a stream. `Content-Type` 
is `application/octet-stream`. The `file` and `ce-file` headers hold the name 
of the file, with its path below `directoryName` when `recursive` is true, such 
as `2026/orders.csv`. `CamelFileName` holds the same name, and 
`CamelFileLength` the size of the file in bytes.
 
       Good to know: files are not deleted or moved after they are read, unless 
`delete` is true or `move` is set. A file is read only once while the 
integration runs (`idempotent`), but the files left on the server are all read 
again after a restart; to read each file only once, also across restarts, set 
`move` to a directory such as `.done`, set `delete` to true, or keep the list 
of the files read in a file with `idempotentRepository`. To read only some of 
the files, set `include`, `exc [...]
     required:
@@ -212,6 +212,7 @@ spec:
         example: PKCS12
   dataTypes:
     out:
+      default: binary
       headers:
         file:
           title: File Name
@@ -229,6 +230,11 @@ spec:
           title: File Size
           description: The size of the file, in bytes.
           type: integer
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: The content of the file as it is, with `Content-Type` 
set to `application/octet-stream`. A stream stays a stream, so `streamDownload` 
still reads a large file without holding it in memory.
+          mediaType: application/octet-stream
   dependencies:
     - "camel:ftp"
     - "camel:kamelet"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/google-storage-sink.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/google-storage-sink.kamelet.yaml
index e12563489..3453b7326 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/google-storage-sink.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/google-storage-sink.kamelet.yaml
@@ -36,9 +36,9 @@ spec:
 
       Use it to store data for later use or for other systems, such as 
exported reports, archived events or files received from another system. To 
read the files of a bucket, use `google-storage-source`.
 
-      Input: the body is the content of the file, as text, bytes, a stream or 
a file. Turn structured data such as a Map into JSON text first, for example 
with `json-serialize-action`. The optional `file` header (or `ce-file`) is the 
name of the file in the bucket, with its folders, such as 
`reports/2024-06-01.csv`; without it, the file gets a generated unique name.
+      Input: the body is the content of the file, as text, bytes, a stream or 
a file. Text is turned into bytes before the upload, and the `Content-Type` 
header is set to `application/octet-stream`. A file is passed on as it is, and 
so is a stream, unless stream caching is turned off. Turn structured data such 
as a Map into JSON text first, for example with `json-serialize-action`. The 
optional `file` header (or `ce-file`) is the name of the file in the bucket, 
with its folders, such as  [...]
 
-      Output: when it is used inside a route, the body afterwards describes 
the uploaded file (its bucket, name, size and generation), not its content, and 
the `CamelGoogleCloudStorageObjectName` header holds the name of the file.
+      Output: when it is used inside a route, the body afterwards describes 
the uploaded file (its bucket, name, size and generation), not its content, the 
`Content-Type` header is `application/octet-stream`, and the 
`CamelGoogleCloudStorageObjectName` header holds the name of the file.
 
       Good to know: a file with the same name is overwritten. With 
`objectName`, every message overwrites the same file. The bucket must exist, 
unless `autoCreateBucket` is true; a bucket it creates is in `storageLocation`, 
`US-EAST1` when that is not set. Without `serviceAccountKey`, it logs in with 
the Application Default Credentials of the environment where it runs, or with 
Workload Identity Federation when `useWorkloadIdentityFederation` is true. 
Headers that start with `CamelGoogleC [...]
     required:
@@ -98,6 +98,12 @@ spec:
         pattern: "^[^@\\s]+@[^@\\s]+$"
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         file:
           title: File Name
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/ibm-cos-sink.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/ibm-cos-sink.kamelet.yaml
index 7ae221719..592b770a0 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/ibm-cos-sink.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/ibm-cos-sink.kamelet.yaml
@@ -37,9 +37,9 @@ spec:
 
       Use it to store data for later use or for other systems, such as 
exported reports, archived events or files received from another system. To 
read the files of a bucket, use `ibm-cos-source`.
 
-      Input: the body is the content of the file, as text, bytes, a stream or 
a file. Turn structured data such as a Map into JSON text first, for example 
with `json-serialize-action`. The name of the file (its key) is `keyName` when 
it is set, or then a `CamelIBMCOSKey` header; otherwise the optional `file` 
header (or `ce-file`), with its folders, such as `reports/2024-06-01.csv`; 
otherwise a generated unique name.
+      Input: the body is the content of the file, as text, bytes, a stream or 
a file. Text is turned into bytes before the upload, and the `Content-Type` 
header is set to `application/octet-stream`. A file is passed on as it is, and 
so is a stream, unless stream caching is turned off. Turn structured data such 
as a Map into JSON text first, for example with `json-serialize-action`. The 
name of the file (its key) is `keyName` when it is set, or then a 
`CamelIBMCOSKey` header; otherwise th [...]
 
-      Output: the message is unchanged, with the ETag of the uploaded file in 
the `CamelIBMCOSETag` header.
+      Output: the body is the content of the file, as bytes when it was text, 
and the `Content-Type` header is `application/octet-stream`. The 
`CamelIBMCOSETag` header holds the ETag of the uploaded file.
 
       Good to know: a file with the same name is overwritten. With 
`deleteAfterWrite` set to true, a body that is a local file, such as the file 
of `file-watch-source`, is deleted from the local disk once it has been 
uploaded. The bucket must exist, unless `autoCreateBucket` is true. It logs in 
with an IBM Cloud API key. Headers that start with `CamelIBMCOS`, except 
`CamelIBMCOSKey`, are removed from the message first, so they cannot change 
what the Kamelet does.
     required:
@@ -109,6 +109,12 @@ spec:
         example: STANDARD
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         file:
           title: File Name
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/langchain4j-ingest-file-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/langchain4j-ingest-file-source.kamelet.yaml
index 0b7509e70..5aa37872c 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/langchain4j-ingest-file-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/langchain4j-ingest-file-source.kamelet.yaml
@@ -37,7 +37,7 @@ spec:
 
       Use it to feed a knowledge base for an AI assistant: put it in front of 
`langchain4j-ingest-sink`, with `tika-extract-text-action` or 
`docling-convert-action` in between for PDF or office documents.
 
-      Output: the body is the file, read as bytes unless `charset` is set. The 
`CamelLangChain4jIngestDocumentId` header is the path of the file relative to 
`directory`, such as `manuals/pump.pdf`, which `langchain4j-ingest-sink` uses 
as the document id. The usual file headers, such as `CamelFileName`, are set 
too.
+      Output: the body is the file, read as bytes unless `charset` is set, and 
the `Content-Type` header is `application/octet-stream`. The 
`CamelLangChain4jIngestDocumentId` header is the path of the file relative to 
`directory`, such as `manuals/pump.pdf`, which `langchain4j-ingest-sink` uses 
as the document id. The usual file headers, such as `CamelFileName`, are set 
too.
 
       Good to know: the files are never deleted or moved. A file is read again 
when its modification time or size changes, and `langchain4j-ingest-sink` then 
adds the new version next to the old one, unless it has an 
`idempotentRepository`, which skips it. The files already read are remembered 
in memory only, by default the last 1000, so after a restart every file is read 
again; set `idempotentRepository` to keep them. A file that is still being 
copied in is read only once it stops chang [...]
     required:
@@ -97,6 +97,12 @@ spec:
         example: "#bean:readFiles"
   dataTypes:
     out:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The file, which is not read into memory here."
+          mediaType: application/octet-stream
       headers:
         CamelLangChain4jIngestDocumentId:
           title: Document ID
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/scp-sink.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/scp-sink.kamelet.yaml
index e6dbe767a..055ce25c8 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/scp-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/scp-sink.kamelet.yaml
@@ -37,9 +37,9 @@ spec:
 
       Use it to copy files to a server you reach with SSH that does not offer 
SFTP, for example to drop a configuration or a report on a host. To append to 
or keep existing files, or to create the directory when it is missing, use 
`sftp-sink` instead.
 
-      Input: the body is the content of the file, as text, bytes or a stream. 
The name of the file comes from the `CamelFileName` header, which may hold 
subdirectories, such as `reports/data.csv`; without it, a unique name is 
generated.
+      Input: the body is the content of the file, as text, bytes or a stream. 
Text is turned into bytes before the copy, and the `Content-Type` header is set 
to `application/octet-stream`. A file is passed on as it is, and so is a 
stream, unless stream caching is turned off. The name of the file comes from 
the `CamelFileName` header, which may hold subdirectories, such as 
`reports/data.csv`; without it, a unique name is generated.
 
-      Output: the message is unchanged. The `CamelFileNameProduced` header is 
set to the path of the file on the server.
+      Output: the body is the content of the file, as bytes when it was text, 
and the `Content-Type` header is `application/octet-stream`. The 
`CamelFileNameProduced` header is set to the path of the file on the server.
 
       Good to know: files are written in `directoryName`, or else in the home 
directory of `username`, with the rights of that user, and a file with the same 
name is replaced. `directoryName` must exist: when it does not, every file is 
written as a file with the name of the directory. A file name that points 
outside the directory fails the message. The key of the server is checked 
against the file in `knownHostsUri`, or else `~/.ssh/known_hosts` of the user 
that runs the integration, unl [...]
     required:
@@ -110,6 +110,12 @@ spec:
         example: "640"
   dataTypes:
     in:
+      default: binary
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The content of the file, as bytes. A file, and a 
stream while stream caching is on, are passed on as they are."
+          mediaType: application/octet-stream
       headers:
         CamelFileName:
           title: File Name
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/sftp-sink.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/sftp-sink.kamelet.yaml
index bc9d6ae1a..5eccf42c8 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/sftp-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/sftp-sink.kamelet.yaml
@@ -153,6 +153,9 @@ spec:
         type: integer
         example: 30000
   dataTypes:
+    # No 'default: binary' here on purpose: with stream caching turned off, it 
would read a
+    # stream into memory (a byte[]) before the upload, such as a large file 
from ftp-source or
+    # sftp-source with streamDownload, while the client otherwise sends it as 
it reads it (#3117).
     in:
       headers:
         file:
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/sftp-source.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/sftp-source.kamelet.yaml
index ba36caac9..8a9f5c6f6 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/sftp-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/sftp-source.kamelet.yaml
@@ -36,7 +36,7 @@ spec:
 
       Use it to collect the files that a partner or another system drops on a 
server you reach with SSH, such as orders, invoices or exports. For an FTP 
server use `ftp-source` or `ftps-source`.
 
-      Output: the body is the content of the file, as bytes, or as a stream 
when `streamDownload` is true. The `file` and `ce-file` headers hold the name 
of the file, with its path below `directoryName` when `recursive` is true, such 
as `2026/orders.csv`. `CamelFileName` holds the same name, and 
`CamelFileLength` the size of the file in bytes.
+      Output: the body is the content of the file, as bytes, or as a stream 
when `streamDownload` is true. `Content-Type` is `application/octet-stream`. 
The `file` and `ce-file` headers hold the name of the file, with its path below 
`directoryName` when `recursive` is true, such as `2026/orders.csv`. 
`CamelFileName` holds the same name, and `CamelFileLength` the size of the file 
in bytes.
 
       Good to know: files are not deleted or moved after they are read, unless 
`delete` is true or `move` is set. A file is read only once while the 
integration runs (`idempotent`), but the files left on the server are all read 
again after a restart; to read each file only once, also across restarts, set 
`move` to a directory such as `.done`, set `delete` to true, or keep the list 
of the files read in a file with `idempotentRepository`. To read only some of 
the files, set `include`, `exc [...]
     required:
@@ -225,6 +225,7 @@ spec:
         example: 30000
   dataTypes:
     out:
+      default: binary
       headers:
         file:
           title: File Name
@@ -242,6 +243,11 @@ spec:
           title: File Size
           description: The size of the file, in bytes.
           type: integer
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: The content of the file as it is, with `Content-Type` 
set to `application/octet-stream`. A stream stays a stream, so `streamDownload` 
still reads a large file without holding it in memory.
+          mediaType: application/octet-stream
   dependencies:
     - "camel:ftp"
     - "camel:kamelet"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/aws/s3/aws-s3-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/aws/s3/aws-s3-sink-route.citrus.it.yaml
index c7d519930..07ce93948 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/aws/s3/aws-s3-sink-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/aws/s3/aws-s3-sink-route.citrus.it.yaml
@@ -58,6 +58,13 @@ actions:
           integration: "aws-s3-sink-route"
           logMessage: "${test.message}"
 
+  # The message goes on with the body as bytes and Content-Type 
application/octet-stream
+  - camel:
+      cli:
+        verify:
+          integration: "aws-s3-sink-route"
+          logMessage: "Kamelet result: body=[B ct=application/octet-stream"
+
   # Verify object exists in S3 by reading it back
   - groovy:
       script:
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/aws/s3/aws-s3-sink-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/aws/s3/aws-s3-sink-route.yaml
index 67b08ab95..cc707bb77 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/aws/s3/aws-s3-sink-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/aws/s3/aws-s3-sink-route.yaml
@@ -35,3 +35,5 @@
             uriEndpointOverride: "{{aws.s3.uriEndpointOverride}}"
             forcePathStyle: "{{aws.s3.forcePathStyle}}"
             keyName: "{{aws.s3.key}}"
+      # what the Kamelet gives: the Java type of the body and the Content-Type
+      - log: "Kamelet result: body=${body.getClass().getName()} 
ct=${header.Content-Type}"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-append-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-append-sink-route.citrus.it.yaml
index 6379b1ec0..30758d9c5 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-append-sink-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-append-sink-route.citrus.it.yaml
@@ -82,7 +82,7 @@ actions:
             - name: "X-Body-Type"
               value: 'java.lang.Boolean'
             - name: "X-Content-Type"
-              value: 'ct='
+              value: 'ct=application/octet-stream'
             - name: "X-Blob-Name"
               value: 'logs/app.log'
             - name: "X-Append-Offset"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-append-sink-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-append-sink-route.yaml
index a85659222..72e2299bc 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-append-sink-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-append-sink-route.yaml
@@ -47,6 +47,9 @@
         - setHeader:
             name: X-Content-Type
             simple: "ct=${header.Content-Type}"
+        # the HTTP server reads an application/octet-stream body as bytes: 
send the body as text
+        - removeHeader:
+            name: Content-Type
         - setHeader:
             name: X-Blob-Name
             simple: "${header.CamelAzureStorageBlobBlobName}"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-sink-route.citrus.it.yaml
index 84e4f43a3..0137bbc81 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-sink-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-sink-route.citrus.it.yaml
@@ -81,7 +81,7 @@ actions:
             - name: "X-Body-Type"
               value: 'java.lang.Boolean'
             - name: "X-Content-Type"
-              value: 'ct='
+              value: 'ct=application/octet-stream'
             - name: "X-Blob-Name"
               value: 'orders/order-1.txt'
             - name: "X-ETag"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-sink-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-sink-route.yaml
index 616cfbac8..b93085e92 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-sink-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-blob-sink-route.yaml
@@ -39,6 +39,9 @@
         - setHeader:
             name: X-Content-Type
             simple: "ct=${header.Content-Type}"
+        # the HTTP server reads an application/octet-stream body as bytes: 
send the body as text
+        - removeHeader:
+            name: Content-Type
         - setHeader:
             name: X-Blob-Name
             simple: "${header.CamelAzureStorageBlobBlobName}"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-datalake-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-datalake-sink-route.citrus.it.yaml
index 0997326cf..5874fe6cb 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-datalake-sink-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-datalake-sink-route.citrus.it.yaml
@@ -81,7 +81,7 @@ actions:
             - name: "X-Body-Type"
               value: 'java.lang.Boolean'
             - name: "X-Content-Type"
-              value: 'ct='
+              value: 'ct=application/octet-stream'
             - name: "X-File-Name"
               value: 'in/order-1.txt'
           body:
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-datalake-sink-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-datalake-sink-route.yaml
index 0c9e6604d..b4b7f1c61 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-datalake-sink-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/azure/azure-storage-datalake-sink-route.yaml
@@ -40,6 +40,9 @@
         - setHeader:
             name: X-Content-Type
             simple: "ct=${header.Content-Type}"
+        # the HTTP server reads an application/octet-stream body as bytes: 
send the body as text
+        - removeHeader:
+            name: Content-Type
         - setHeader:
             name: X-File-Name
             simple: "${header.CamelAzureStorageDataLakeFileName}"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ceph/ceph-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/ceph/ceph-sink-route.citrus.it.yaml
index b52f24c53..6bd1e8cc1 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/ceph/ceph-sink-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/ceph/ceph-sink-route.citrus.it.yaml
@@ -16,7 +16,7 @@
 # ---------------------------------------------------------------------------
 
 name: ceph-sink-route-test
-description: 'ceph-sink uploads the body as a file to the bucket, under the 
key in the file header, ignores a header that names another bucket, and the 
message goes on unchanged'
+description: 'ceph-sink uploads the body as a file to the bucket, under the 
key in the file header, ignores a header that names another bucket, and the 
message goes on with the body as bytes and Content-Type 
application/octet-stream'
 variables:
   - name: "s3.client"
     value: "s3CephSinkClient"
@@ -26,6 +26,9 @@ variables:
     value: "reports/day 1+x=2.csv"
   - name: "s3.content"
     value: "id,item"
+  # the sender's Content-Type (text/csv) is not stored: the file has the 
default content type of the S3 client
+  - name: "s3.contentType"
+    value: "application/octet-stream"
 actions:
   # Create the S3 storage (Floci container), with the bucket
   - testcontainers:
@@ -60,7 +63,7 @@ actions:
                 - name: "s3.region"
                   value: "${CITRUS_TESTCONTAINERS_LOCALSTACK_REGION}"
 
-  # The message goes on unchanged
+  # The message goes on with the body as bytes and Content-Type 
application/octet-stream
   - http:
       server: "cloudHttpServer"
       receiveRequest:
@@ -69,9 +72,9 @@ actions:
           type: "plaintext"
           headers:
             - name: "X-Body-Type"
-              value: 'java.lang.String'
+              value: '[B'
             - name: "X-Content-Type"
-              value: 'ct='
+              value: 'ct=application/octet-stream'
             - name: "X-S3-Key"
               value: 'reports/day 1+x=2.csv'
             - name: "X-S3-ETag"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ceph/ceph-sink-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/ceph/ceph-sink-route.yaml
index e2a97646f..b2fcd88a9 100644
--- a/tests/camel-kamelets-itest/src/test/resources/ceph/ceph-sink-route.yaml
+++ b/tests/camel-kamelets-itest/src/test/resources/ceph/ceph-sink-route.yaml
@@ -31,6 +31,10 @@
         - setHeader:
             name: CamelAwsS3OverrideBucketName
             constant: 'other-bucket'
+        # the Content-Type of the sender is not stored with the file
+        - setHeader:
+            name: Content-Type
+            constant: 'text/csv'
         - to:
             uri: "kamelet:ceph-sink"
             parameters:
@@ -48,6 +52,11 @@
         - setHeader:
             name: X-Content-Type
             simple: "ct=${header.Content-Type}"
+        # the HTTP server reads an application/octet-stream body as bytes: 
send the body as text
+        - removeHeader:
+            name: Content-Type
+        - convertBodyTo:
+            type: "java.lang.String"
         # Camel headers are not sent over HTTP: copy them
         - setHeader:
             name: X-S3-Key
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ceph/verifyObject.groovy 
b/tests/camel-kamelets-itest/src/test/resources/ceph/verifyObject.groovy
index 3efee106f..dfdf21eff 100644
--- a/tests/camel-kamelets-itest/src/test/resources/ceph/verifyObject.groovy
+++ b/tests/camel-kamelets-itest/src/test/resources/ceph/verifyObject.groovy
@@ -16,7 +16,7 @@
  */
 
 // Checks that the bucket s3.bucket has the file s3.key, with the content 
s3.content, read with the S3 client
-// s3.client of the Floci container.
+// s3.client of the Floci container, and, when s3.contentType is set, with 
that content type.
 
 import software.amazon.awssdk.services.s3.S3Client
 import software.amazon.awssdk.services.s3.model.GetObjectRequest
@@ -31,3 +31,9 @@ def response = s3.getObjectAsBytes(GetObjectRequest.builder()
 String content = response.asUtf8String()
 String expected = context.getVariable('s3.content')
 assert content == expected : "Expected '" + expected + "' but got '" + content 
+ "'"
+
+if (context.getVariables().containsKey('s3.contentType')) {
+    String contentType = response.response().contentType()
+    String expectedType = context.getVariable('s3.contentType')
+    assert contentType == expectedType : "Expected content type '" + 
expectedType + "' but got '" + contentType + "'"
+}
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-route.citrus.it.yaml
index 92ed19720..698ada431 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-route.citrus.it.yaml
@@ -54,7 +54,7 @@ actions:
             - name: "X-Body-Type"
               value: 
'org.apache.camel.converter.stream.ByteArrayInputStreamCache'
             - name: "X-Content-Type"
-              value: 'ct='
+              value: 'ct=application/octet-stream'
             - name: "file"
               value: 'order 1.csv'
             - name: "ce-file"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-route.yaml
index 5c001405a..1ccf0ab35 100644
--- a/tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-route.yaml
+++ b/tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-route.yaml
@@ -40,6 +40,9 @@
         - setHeader:
             name: X-File-Length
             simple: "${header.CamelFileLength}"
+        # Citrus reads an application/octet-stream body as bytes: send text
+        - removeHeader:
+            name: Content-Type
         # the body is a stream: give the HTTP server text
         - convertBodyTo:
             type: "java.lang.String"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-stream-route.citrus.it.yaml
similarity index 81%
copy from 
tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-route.citrus.it.yaml
copy to 
tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-stream-route.citrus.it.yaml
index 92ed19720..dea11a688 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-stream-route.citrus.it.yaml
@@ -15,8 +15,8 @@
 # limitations under the License.
 # ---------------------------------------------------------------------------
 
-name: ftp-source-route-test
-description: 'ftp-source reads the file in the directory on the FTP server, as 
a stream, with its name in the file, ce-file and CamelFileName headers'
+name: ftp-source-stream-route-test
+description: 'ftp-source with streamDownload and stream caching off hands on 
the file as a stream, not read into memory, with Content-Type 
application/octet-stream'
 variables:
   - name: "ftp.tls"
     value: "false"
@@ -35,15 +35,17 @@ actions:
         run:
           waitForRunningState: false
           integration:
-            file: "ftp/ftp-source-route.yaml"
+            file: "ftp/ftp-source-stream-route.yaml"
             systemProperties:
               properties:
                 - name: "http.sink.url"
                   value: "http://localhost:${file.http.server.port}";
                 - name: "ftp.port"
                   value: "${ftp.server.port}"
+                - name: "camel.main.streamCachingEnabled"
+                  value: "false"
 
-  # The source gives the content of the file as a stream, with its name and 
size
+  # The source gives the content of the file as a plain stream, not a byte[] 
or a stream cache
   - http:
       server: "fileHttpServer"
       receiveRequest:
@@ -52,9 +54,9 @@ actions:
           type: "plaintext"
           headers:
             - name: "X-Body-Type"
-              value: 
'org.apache.camel.converter.stream.ByteArrayInputStreamCache'
+              value: 'org.apache.commons.net.io.SocketInputStream'
             - name: "X-Content-Type"
-              value: 'ct='
+              value: 'ct=application/octet-stream'
             - name: "file"
               value: 'order 1.csv'
             - name: "ce-file"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-stream-route.yaml
similarity index 84%
copy from 
tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-route.yaml
copy to 
tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-stream-route.yaml
index 5c001405a..409b76afa 100644
--- a/tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/ftp/ftp-source-stream-route.yaml
@@ -25,8 +25,12 @@
         # a password with characters that have a meaning in an endpoint address
         password: 's3cr&t+pw'
         directoryName: 'orders'
+        # read the file while it is handed on, for files too large for memory
+        streamDownload: true
+        stepwise: false
       steps:
         # what the Kamelet gives: the Java type of the body and the 
Content-Type
+        # with stream caching off, binary keeps the stream of the FTP client: 
it is not read into a byte[]
         - setHeader:
             name: X-Body-Type
             simple: "${body.getClass().getName()}"
@@ -40,6 +44,9 @@
         - setHeader:
             name: X-File-Length
             simple: "${header.CamelFileLength}"
+        # Citrus reads an application/octet-stream body as bytes: send text
+        - removeHeader:
+            name: Content-Type
         # the body is a stream: give the HTTP server text
         - convertBodyTo:
             type: "java.lang.String"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ftp/ftps-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/ftp/ftps-source-route.citrus.it.yaml
index 0397419da..d4ca4e622 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/ftp/ftps-source-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/ftp/ftps-source-route.citrus.it.yaml
@@ -65,7 +65,7 @@ actions:
             - name: "X-Body-Type"
               value: 
'org.apache.camel.converter.stream.ByteArrayInputStreamCache'
             - name: "X-Content-Type"
-              value: 'ct='
+              value: 'ct=application/octet-stream'
             - name: "file"
               value: 'order 1.csv'
             - name: "ce-file"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ftp/ftps-source-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/ftp/ftps-source-route.yaml
index 3e1da5640..7d808b2d4 100644
--- a/tests/camel-kamelets-itest/src/test/resources/ftp/ftps-source-route.yaml
+++ b/tests/camel-kamelets-itest/src/test/resources/ftp/ftps-source-route.yaml
@@ -47,6 +47,9 @@
         - setHeader:
             name: X-File-Length
             simple: "${header.CamelFileLength}"
+        # Citrus reads an application/octet-stream body as bytes: send text
+        - removeHeader:
+            name: Content-Type
         # the body is a stream: give the HTTP server text
         - convertBodyTo:
             type: "java.lang.String"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/google/google-storage-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/google/google-storage-sink-route.citrus.it.yaml
index f541725a2..4d487208d 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/google/google-storage-sink-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/google/google-storage-sink-route.citrus.it.yaml
@@ -80,7 +80,7 @@ actions:
             - name: "X-Body-Type"
               value: 'com.google.cloud.storage.Blob'
             - name: "X-Content-Type"
-              value: 'ct='
+              value: 'ct=application/octet-stream'
             - name: "X-Object-Name"
               value: 'orders/order-1.txt'
           body:
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/google/google-storage-sink-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/google/google-storage-sink-route.yaml
index af429b033..0ccd3844c 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/google/google-storage-sink-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/google/google-storage-sink-route.yaml
@@ -38,6 +38,9 @@
         - setHeader:
             name: X-Content-Type
             simple: "ct=${header.Content-Type}"
+        # the HTTP server reads an application/octet-stream body as bytes: 
send the body as text
+        - removeHeader:
+            name: Content-Type
         - setHeader:
             name: X-Object-Name
             simple: "${header.CamelGoogleCloudStorageObjectName}"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ibmcos/ibm-cos-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/ibmcos/ibm-cos-sink-route.citrus.it.yaml
index c6d7e1b21..5a5ace46f 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/ibmcos/ibm-cos-sink-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/ibmcos/ibm-cos-sink-route.citrus.it.yaml
@@ -69,9 +69,9 @@ actions:
           type: "plaintext"
           headers:
             - name: "X-Body-Type"
-              value: 'java.lang.String'
+              value: '[B'
             - name: "X-Content-Type"
-              value: 'ct='
+              value: 'ct=application/octet-stream'
             - name: "X-ETag"
               value: '@notEmpty()@'
           body:
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ibmcos/ibm-cos-sink-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/ibmcos/ibm-cos-sink-route.yaml
index 59c386c8d..d1b557e86 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/ibmcos/ibm-cos-sink-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/ibmcos/ibm-cos-sink-route.yaml
@@ -41,6 +41,11 @@
         - setHeader:
             name: X-Content-Type
             simple: "ct=${header.Content-Type}"
+        # the HTTP server reads an application/octet-stream body as bytes: 
send the body as text
+        - removeHeader:
+            name: Content-Type
+        - convertBodyTo:
+            type: "java.lang.String"
         - setHeader:
             name: X-ETag
             simple: "${header.CamelIBMCOSETag}"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/langchain4j-ingest/langchain4j-ingest-file-media-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/langchain4j-ingest/langchain4j-ingest-file-media-route.yaml
index c9244ef04..aa138d245 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/langchain4j-ingest/langchain4j-ingest-file-media-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/langchain4j-ingest/langchain4j-ingest-file-media-route.yaml
@@ -65,4 +65,8 @@
         - log: "INGEST ${body}"
         - convertBodyTo:
             type: "java.lang.String"
+        # the source marks the file application/octet-stream, which the sink 
leaves in place, and
+        # the HTTP server reads an application/octet-stream body as bytes: 
send it as text
+        - removeHeader:
+            name: Content-Type
         - to: "{{report.url}}"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/langchain4j-ingest/langchain4j-ingest-file-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/langchain4j-ingest/langchain4j-ingest-file-source-route.citrus.it.yaml
index 1eea405c2..54b028f52 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/langchain4j-ingest/langchain4j-ingest-file-source-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/langchain4j-ingest/langchain4j-ingest-file-source-route.citrus.it.yaml
@@ -59,6 +59,11 @@ actions:
           headers:
             - name: "docId"
               value: "doc.txt"
+            # the file itself, not read into memory, marked as binary
+            - name: "X-Body-Type"
+              value: "org.apache.camel.component.file.GenericFile"
+            - name: "X-Content-Type"
+              value: "ct=application/octet-stream"
           type: "plaintext"
           body:
             data: "@contains('Sphinx of black quartz, judge my vow')@"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/langchain4j-ingest/langchain4j-ingest-file-source-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/langchain4j-ingest/langchain4j-ingest-file-source-route.yaml
index 9c6544fed..ebbd3c6b6 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/langchain4j-ingest/langchain4j-ingest-file-source-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/langchain4j-ingest/langchain4j-ingest-file-source-route.yaml
@@ -33,6 +33,16 @@
     from:
       uri: 
"kamelet:langchain4j-ingest-file-source?directory={{ingest.dir}}&charset=UTF-8"
       steps:
+        # what the Kamelet gives: the Java type of the body and the 
Content-Type
+        - setHeader:
+            name: X-Body-Type
+            simple: "${body.getClass().getName()}"
+        - setHeader:
+            name: X-Content-Type
+            simple: "ct=${header.Content-Type}"
+        # the HTTP server reads an application/octet-stream body as bytes: 
send the body as text
+        - removeHeader:
+            name: Content-Type
         - convertBodyTo:
             type: "java.lang.String"
         - log: "FILE-SOURCE ${body} 
id=${header.CamelLangChain4jIngestDocumentId}"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/langchain4j-ingest/parser-max-size-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/langchain4j-ingest/parser-max-size-route.yaml
index b4cc9f9de..705145339 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/langchain4j-ingest/parser-max-size-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/langchain4j-ingest/parser-max-size-route.yaml
@@ -317,4 +317,8 @@
                 steps:
                   - setBody:
                       simple: "rejected: ${exception.message}"
+        # the source marks the file application/octet-stream, which the 
rejection leaves in place,
+        # and the HTTP server reads an application/octet-stream body as bytes: 
send it as text
+        - removeHeader:
+            name: Content-Type
         - to: "{{report.url}}"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ssh/scp-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/ssh/scp-sink-route.citrus.it.yaml
index 537d16936..cfcf6cf51 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/ssh/scp-sink-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/ssh/scp-sink-route.citrus.it.yaml
@@ -16,7 +16,7 @@
 # ---------------------------------------------------------------------------
 
 name: scp-sink-route-test
-description: 'scp-sink copies the body as a file to the directory on the 
server, under the name in the CamelFileName header, checking the key of the 
server against the known_hosts file of knownHostsUri, and the message goes on 
unchanged'
+description: 'scp-sink copies the body as a file to the directory on the 
server, under the name in the CamelFileName header, checking the key of the 
server against the known_hosts file of knownHostsUri, and the message goes on 
with the body as bytes and Content-Type application/octet-stream'
 variables:
   - name: "ssh.chmod"
     value: "640"
@@ -67,7 +67,7 @@ actions:
                 - name: "ssh.known.hosts"
                   value: "${ssh.known.hosts}"
 
-  # The message goes on unchanged
+  # The message goes on with the body as bytes and Content-Type 
application/octet-stream
   - http:
       server: "fileHttpServer"
       receiveRequest:
@@ -76,9 +76,9 @@ actions:
           type: "plaintext"
           headers:
             - name: "X-Body-Type"
-              value: 'java.lang.String'
+              value: '[B'
             - name: "X-Content-Type"
-              value: 'ct='
+              value: 'ct=application/octet-stream'
             - name: "X-File-Name"
               value: 'day 1.csv'
             - name: "X-File-Name-Produced"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ssh/scp-sink-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/ssh/scp-sink-route.yaml
index a2b86f53e..1f0933274 100644
--- a/tests/camel-kamelets-itest/src/test/resources/ssh/scp-sink-route.yaml
+++ b/tests/camel-kamelets-itest/src/test/resources/ssh/scp-sink-route.yaml
@@ -45,6 +45,11 @@
         - setHeader:
             name: X-Content-Type
             simple: "ct=${header.Content-Type}"
+        # the HTTP server reads an application/octet-stream body as bytes: 
send the body as text
+        - removeHeader:
+            name: Content-Type
+        - convertBodyTo:
+            type: "java.lang.String"
         # Camel headers are not sent over HTTP: copy them
         - setHeader:
             name: X-File-Name
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ssh/sftp-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/ssh/sftp-source-route.citrus.it.yaml
index 32efb9b1b..f317f1a61 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/ssh/sftp-source-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/ssh/sftp-source-route.citrus.it.yaml
@@ -75,7 +75,7 @@ actions:
             - name: "X-Body-Type"
               value: '[B'
             - name: "X-Content-Type"
-              value: 'ct='
+              value: 'ct=application/octet-stream'
             - name: "file"
               value: 'order 1.csv'
             - name: "ce-file"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ssh/sftp-source-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/ssh/sftp-source-route.yaml
index ef3c043f9..86dde8903 100644
--- a/tests/camel-kamelets-itest/src/test/resources/ssh/sftp-source-route.yaml
+++ b/tests/camel-kamelets-itest/src/test/resources/ssh/sftp-source-route.yaml
@@ -42,6 +42,9 @@
         - setHeader:
             name: X-File-Length
             simple: "${header.CamelFileLength}"
+        # Citrus reads an application/octet-stream body as bytes: send text
+        - removeHeader:
+            name: Content-Type
         # give the HTTP server text
         - convertBodyTo:
             type: "java.lang.String"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ssh/sftp-source-stream-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/ssh/sftp-source-stream-route.citrus.it.yaml
index 73cf2f737..b8d2e61af 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/ssh/sftp-source-stream-route.citrus.it.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/ssh/sftp-source-stream-route.citrus.it.yaml
@@ -75,7 +75,7 @@ actions:
             - name: "X-Body-Type"
               value: 'org.apache.camel.converter.stream.InputStreamCache'
             - name: "X-Content-Type"
-              value: 'ct='
+              value: 'ct=application/octet-stream'
             - name: "file"
               value: 'order 1.csv'
             - name: "ce-file"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/ssh/sftp-source-stream-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/ssh/sftp-source-stream-route.yaml
index 75cd90e11..3d5d2022c 100644
--- 
a/tests/camel-kamelets-itest/src/test/resources/ssh/sftp-source-stream-route.yaml
+++ 
b/tests/camel-kamelets-itest/src/test/resources/ssh/sftp-source-stream-route.yaml
@@ -44,6 +44,9 @@
         - setHeader:
             name: X-File-Length
             simple: "${header.CamelFileLength}"
+        # Citrus reads an application/octet-stream body as bytes: send text
+        - removeHeader:
+            name: Content-Type
         # the body is a stream: give the HTTP server text
         - convertBodyTo:
             type: "java.lang.String"

Reply via email to