[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Camel-box download file version

Hi All,

I am trying to create Camel-Box route for downloading older file version.
I am using Camel version 2.22.1

This Is the code

        .log("********* Downloading file version *********")
        .setHeader("CamelBox.fileId", method(service, "getFileId"))
        .setHeader("CamelBox.output", method(service, "getFileOutputStream"))
        .setHeader("CamelBox.version", method(service, "getFileVersion"))

The exception is :
Failed to resolve endpoint: box://files/downloadVersion due to: No matching method for files/downloadVersion, with arguments [].

I have tried with “downloadPreviousFileVersions” and “downloadVersion” endpoints, but with no success.

Sent from Mail<> for Windows 10