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

Re: Camel-box download file version

Did you try by specifying option directly in the URI by using a toD?

If you think this is a bug, please raise a JIRA in the Apache Camel JIRA.

Andrea Cosentino 
Apache Camel PMC Chair
Apache Karaf Committer
Apache Servicemix PMC Member
Email: ancosen1985@xxxxxxxxx
Twitter: @oscerd2
Github: oscerd

On Wednesday, November 21, 2018, 2:12:23 PM GMT+1, Vladimir Cherepnalkovski <cherepnalkovski@xxxxxxxxxxx> wrote: 

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