File Storage and Transfer
Azure Storage Blob Service
-
Description: Azure Storage Blob Service is used to store and retrieve blobs (binary large objects) from the Azure Storage Blob service using Azure APIs v12.
-
Example
-
The flow begins with a
POST
request to the/hello
endpoint. -
The
azure-storage-blob
component is used to connect to themyblobcontainer
container in thecamelstorageaccount01
account. -
Parameters:
-
credentialType: "SHARED_ACCOUNT_KEY"
: specifies that authentication will use the shared account key. -
operation: "listBlobs"
: defines that the performed operation will be listing the blobs in the container. -
accessKey: "{{AWS_ACCESS_KEY}}"
: specifies the access key for authentication, referenced in a variable.
-
-
After listing the blobs, the flow logs information using the
myLogger
identifier.
-
Script |
Diagram |
|
AWS S3 Storage Service
-
Description: the AWS S3 Storage Service component allows you to interact with AWS’s Amazon S3 (Simple Storage Service) and manage data in S3 buckets directly through integration routes.
-
Example
-
The flow starts with a
GET
request to the/file/retrieve
endpoint. -
The connector retrieves a file from the S3 bucket.
-
uri
: defines the bucket (name or ARN). -
The parameters include:
-
fileName
: defines the path to the file in the bucket (e.g.,path/to/myfile.txt
). -
accessKey
andsecretKey
: authentication credentials to access the bucket, referenced as environment variables.
-
-
-
Once the file is successfully retrieved, its content is logged.
-
Script |
Diagram |
|
FTP/FTPS
-
Description: the FTP component provides access to remote file systems using FTP and SFTP protocols. It operates in passive mode only.
The FTPS is a secure version of FTP that adds support for SSL/TLS to encrypt the connection. |
-
Example
-
The flow starts by downloading a file from an FTP server. The server is specified by the
ftp_host
variable. -
The file content is transformed by replacing accented characters 'ã', 'â', 'á', 'à', and 'ä' with 'a'.
-
The modified file is then uploaded to the same or a different directory on the FTP server.
-
Script |
Diagram |
|
SFTP
-
Description: the SFTP component provides access to remote file systems through FTP and SFTP protocols. It operates only in passive mode.
-
Example
-
The flow in the example is configured to be triggered by a Quartz scheduler, which fires every minute.
-
When the trigger is activated, the message body is set to
Hello World
. -
The flow then sends this message as a file named
helloworld.txt
to an SFTP server atdemo.wftpserver.com
, on port2222
, in the/upload
directory.
-
Script |
Diagram |
|
Share your suggestions with us!
Click here and then [+ Submit idea]