title: Camel-Azure BlobStreamAndLength IllegalArgumentException: Unsupported blob type:org.apache.camel.component.file.remote.SftpRemoteFileJCraft
body: <p>I created a Camel route which takes file from SFTP (local SFTP running using Docker) and uploading the file to Azure Blob Container. During the file processing, I can see the file content is logged in the application logs, however getting the below exception when it tried to upload the same to Azure blob storage.</p>
  <p>Camel route</p>
  <p><code>from(&quot;sftp://user:xxxxxx@host:port/upload/in/blob/&quot;).to(&quot;azure-storage-blob://blobName/accountName?accessKey=xxxxxx&quot;)</code></p>
  <p>Exception Trace</p>
  <pre><code>java.lang.IllegalArgumentException: Unsupported blob type:org.apache.camel.component.file.remote.SftpRemoteFileJCraft
      at org.apache.camel.component.azure.storage.blob.BlobStreamAndLength.createBlobStreamAndLengthFromExchangeBody(BlobStreamAndLength.java:65) ~[camel-azure-storage-blob-3.11.1.jar:3.11.1]
      at org.apache.camel.component.azure.storage.blob.operations.BlobOperations.uploadBlockBlob(BlobOperations.java:181) ~[camel-azure-storage-blob-3.11.1.jar:3.11.1]
      at org.apache.camel.component.azure.storage.blob.BlobProducer.process(BlobProducer.java:86) ~[camel-azure-storage-blob-3.11.1.jar:3.11.1]
      at org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:66) ~[camel-support-3.11.1.jar:3.11.1]
      at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:172) ~[camel-core-processor-3.11.0.jar:3.11.0]
  </code></pre>
  <p>I have tried the suggestion from this link <a href="https://stackoverflow.com/questions/46425049/camel-azure-blobserviceproducer-illegalargumentexception-unsupported-blob-type">Camel-Azure BlobServiceProducer IllegalArgumentException: Unsupported blob type:org.apache.camel.component.file.GenericFile</a>, converting body to <strong>InputStream.class</strong> will work as a workaround, however will it cause any performance issue while dealing with large size files.</p>
  <pre><code>.convertBodyTo(InputStream.class)
  </code></pre>
  <p>Dear Community, please share your thoughts on this error and advise if this is kind of a known issue with Camel component.</p>