B2Uploader - B2Deleter

Quick implementation of Backblaze B2 Buckets within FME Desktop

I was lucky and got an early invite to the Backblaze B2 Cloud Storage, and wanted to see how easy it was to implement this as a part of FME Desktop.

Simply said Amazon S3 and Backblaze B2 is a way to simply host files “in the cloud” through an API. This will let any application (or in this case FME Desktop / Server) write and read files to a place in the cloud and the file can be accessed from a unique URL.  I will not go into comparison of the different services offered from different companies. But a list of available services can be found on Wikipedia (link at the end of this article). Please note that Backblaze B2 Cloud Storage is currently not included because it is only in Beta for the moment.

The API methods used within the B2Uploader was the following:

  • b2_authorize_account – to get valid authorizationToken to the following operations
  • b2_get_upload_url – to get the bucketId and authorizationToken for the correct bucket/folder to store the files
  • b2_upload_file – to actually upload the files

The API methods used within the B2Deleter was the following:

  • b2_authorize_account – to get valid authorizationToken to the following operations
  • b2_list_file_versions  or b2_list_file_names – to get the list of the files in a bucket
  • b2_delete_file_version – to actually delete the files from the bucket

More information can be found from the API-documentation – https://www.backblaze.com/b2/docs/

B2Uploader_B2Deleter

As shown on the image above it is now possible to successfully bulk Upload files to a bucket and Delete files from a bucket. If you want to try the 2 Custom Transformers – download them for free on the FME Hub:

https://hub.safe.com/transformers/b2deleter and https://hub.safe.com/transformers/b2uploader

The advantage of having yet another storage available in FME is that you can easily switch between storage options based on which criterias you have, price / speed / uptime / storage etcetc. And if one of them goes down or changes – you can easily switch to another one!