Hi Christian

Welcome to the Camel community.

Ad 1)
Yes that seems like a little bug. You are welcome to create a JIRA ticket.

You can try as a workaround in a custom processor before calling the azure,
to convert the message body to a FileInputStream.

Ad 2)
What kind of proxy would that be? I have not heard of any cloud services
that go via a proxy before.




On Mon, Feb 22, 2021 at 7:10 PM <christian.muel...@spar-ics.com> wrote:

> Hi Guys,
>
> First of all thanks for your great work.
> We are having a great time with camel and are looking forward to
> contribute when we are more experienced with the framework!
>
> It would be cool if someone can help us with our current issue:
> We are currently trying to integrate azure cloud by using the
> *camel-azure-storage-blob* component
>
> <dependency>
>     <groupId>org.apache.camel.springboot</groupId>
>     <artifactId>camel-azure-storage-blob-starter</artifactId>
>
>     <version>3.7.0</version>
> </dependency>
>
>
> 1.) Everything works fine until we activate *stream caching* and camel
> starts to spool the payload. In this case we get the following error:
>
> Caused by: java.lang.IllegalArgumentException: InputStream of body
> exchange does not support mark/rest operations.
>
>             at
> org.apache.camel.component.azure.storage.blob.BlobStreamAndLength.createBlobStreamAndLengthFromExchangeBody(BlobStreamAndLength.java:52)
>
>             at
> org.apache.camel.component.azure.storage.blob.operations.BlobOperations.uploadBlockBlob(BlobOperations.java:181)
>
> I have looked into the source and think that the component does not load
> the stream properly from the FileInputStreamCache object. Am I missing
> something or is this actually a bug (missing feature) in the component?
>
> 2.) Additionally I would like to force the component to communicate over a
> proxy with the azure cloud. However I did not find anything regarding
> setting a proxy in camel-azure-storage-blob component?
> Not possible? Does there exist a workaround.
>
> Regards Christian
>
>
>
> <https://www.spar-ics.com/>
>
>
> *Dipl. Ing. Christian* *Müller*
> Software Engineer
> Business Automation & Integration
>
> *Mobile:*
>
> +43 664 88748100
>
> *E-Mail:*
>
> christian.muel...@spar-ics.com
>
>
>
>
> *SPAR Business Services GmbH *Information & Communication Services
> Europastrasse 3, 5015 Salzburg, Austria
>
>
>
>
>
> Sollten Sie diese E-Mail unbeabsichtigt bzw. irrtümlich erhalten haben, so
> weisen wir Sie darauf hin, dass gemäß § 93 Abs 4 TKG der Inhalt sowie die
> Tatsache des Empfangs dieser E-Mail weder aufgezeichnet noch verwertet oder
> Unbefugten mitgeteilt werden dürfen. Wir ersuchen Sie, die Nachricht von
> Ihrem System zu löschen und sich mit uns in Verbindung zu setzen.
>
> If you have received this email accidentally or in error, we point out
> that, in accordance with § 93 para. 4 TKG (Telecommunications Act), the
> contents of this email and the fact of its receipt must not be recorded,
> exploited or communicated to unauthorized persons. We ask you to delete the
> message from your system and to contact us.
>
>
>


-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to