object-storage

How to get a direct URL to a file on IBM Cloud Object Storage

青春壹個敷衍的年華 提交于 2020-06-26 14:30:11
问题 So, I have a bucket on IBM's Cloud Object Storage. In this bucket I have an file named 'test.png'. What I need is an URL i can use to access this file directly. An URL that I can just write on browser and the image will open on my browser. I've searched everywhere and could not find anything except for a "ObjectSQL URL" in this format: cos://{Region}/{Bucket}/{File} 回答1: Presuming that the bucket has public access enabled, the URL is just https://{endpoint}/{bucket}/{object} (or https://

OVH Object Storage, nothing happens when I try to upload large file (more than 100 Ko)

北城余情 提交于 2020-03-25 13:57:50
问题 I try to upload files with OVH object storage. But I have three different behavior according to the heavy file. With a weight file which less than 100Ko, everything is ok With a weight file which more than 100Ko, I have this error: Error: write after end , but the file is uploaded on ovh object storage With a weight file which more than 250Ko, nothing happens, and the file is not uploaded. The fs ReadStream is open, but the write stream piped (with the read stream) not finish. This is my code

Object Storage Access Controls API

时间秒杀一切 提交于 2020-01-06 21:08:24
问题 I have looked all through the SoftLayer API documentation, but I cannot find any reference to how one manages which portal users may access the Object Storage authentication endpoints to get the access token. 回答1: if you wish an user have access to the object storage you have to grant the following permissions: "Manage CDN Account", "Manage CDN File Transfer" and "Manage Storage" Remove the permissions above in order to not let your user to access the object storage see: http://knowledgelayer

How to serve user-uploaded files on Swisscom Application Cloud?

痞子三分冷 提交于 2019-12-23 22:52:06
问题 As applications shouldn't write files to the local file system it makes sense to store user-uploaded files in the Dynamic Storage provided by Swisscom. The Dynamic Storage service is similar to Amazon S3 where you would usually make the bucket with the user-uploaded files publicly readable with a bucket policy. However how would I serve user-uploaded files from the Dynamic Storage as the "Put Bucket policy" is an unsupported operation? 回答1: You are correct, dynamic storage of Swisscom does

How to access files in container in Object Storage Service in Bluemix?

谁说我不能喝 提交于 2019-12-23 05:10:06
问题 How can I access files by url in Bluemix Object Storage? Is there a way to make the container public? How can I access the file in Object Storage just by typing the url in the browser? How can I retrieve an image by url to display it in html? 回答1: You can create a temporary URLs using the swift command line to provide public access to your Object Storage files. First you have to set the swift CLI, you can find steps on this link. After you have swift cli configured for your environment you

Import from python library on bluemix

☆樱花仙子☆ 提交于 2019-12-13 07:21:35
问题 I need to use the following imports in a Jupyter notebook on IBM Bluemix import swiftclient from keystoneclient import client If I were on my local workstation, I could use pip to install the libraries, but how do I do it on Bluemix? Another post suggests adding a requirements.txt file and a Procfile file into the root directory of my Python application, but I don't see how to do this with a notebook. Any suggestions? Here is the code: #!pip install --upgrade pip !pip install python

How to create Object in Object Storage Using JAVA?

这一生的挚爱 提交于 2019-12-12 04:29:52
问题 I know how to create object by get authenticate and than call API Here below link is information available how to get authenticate, Unauthorized error while connecting Object Storage from API from Postman Is there any library available in JAVA to perform these operation? I got library from below link but it seems old one and not working, https://github.com/softlayer/softlayer-object-storage-java/tree/master/sl-objectstorage If anyone know Can you please post how to operate it? By using

How to enable CORS in softlayer object storage

那年仲夏 提交于 2019-12-12 04:23:06
问题 I am using the Softlayer object storage and accessing my objects in the S3 bucket using SDK API from my Node.js application deployed on IBM Bluemix. I am able to insert the objects in the bucket but while accessing the object using SDK API I am getting the CORS error as below: XMLHttpRequest cannot load https://s3-api.us-geo.objectstorage.softlayer.net/<my bucket-name>/<my object-name>. No. 'Access Control-......Allow-Origin' header is present on the requested source. Origin 'http://localhost

How do I create HMAC credentials for IBM Cloud Object Storage using the CLI?

吃可爱长大的小学妹 提交于 2019-12-11 17:36:47
问题 I am using the IBM Cloud CLI and tried to generate credentials for my cloud object storage service. However, the following command does not create HMAC credentials needed for using some S3 tools and APIs: ibmcloud resource service-key-create cos-hmac-cli Writer --instance-name myobjectstorage How can I create HMAC credentials using the command line interface? 回答1: The trick is to provide an additional parameter that tells the service to generate the HMAC part, too: ibmcloud resource service

IBM Cloud COS: Using S3 API get-bucket-location returns bucket not found

倾然丶 夕夏残阳落幕 提交于 2019-12-11 17:08:38
问题 I'm using the S3 API for IBM Cloud COS and am getting unexpected bucket not found errors from get-bucket-location. My bucket exists in the us-south region and shows up the s3 ls command, but getting the region is failing. I'm using the java AWS api, but can reproduce it with the aws cli. [08:07] jwilliams:~ $ aws --profile ibm --endpoint-url https://s3-api.us-geo.objectstorage.softlayer.net s3api get-bucket-location --bucket s3-wzd-dv-integrationtest-so-1 An error occurred (NoSuchBucket) when