In a previous blog I discussed how to call a REST API accepting multipart/form-data from VB.  This blog post discusses some other use cases of uploading files from VB

 

Uploading files into OCI object storage

The OCI object storage has the concept of a namespace which represents the top level container for all buckets.  A bucket is a container in which you can store the varius files.  The API uses both the namespace and the bucket name as path parameters which you can easily get from the OCI console (Storage -> Buckets -> navigate to the specific Bucket)

The full URL of the OCI PutObject REST API looks something like below (full details available https://docs.oracle.com/en-us/iaas/api/#/en/objectstorage/20160918/Object/PutObject ):

https://objectstorage.ap-mumbai-1.oraclecloud.com/n/{namespaceName}/b/{bucketName}/o/{objectName}.  The content-type of this API defaults to application/octet-stream which represents binary data.  However this has no impact on the storage operation, which is just going to be stored as an object.

What we are going to do is upload an object to the OCI storage bucket testbucket

1. Create a Service Connection

Create a Service Connection using the OCI Signature Authentication as given in the previous blog with the PutObject URL.  This service would be