Download Storage Object

Introduction

With the Indico SDK, you have the ability to download storage objects generated by the Indico platform such as submission results.

If the storage object is in the JSON format, the result will automatically be deserialized into the native object format for that language, for example dict in python. Otherwise, the result will be in plain text or binary format, depending on the content type of the storage object being retrieved.

RetrieveStorageObject

Input

result_url: str A string representing the indico storage URL of a storage object

Output

Binary file data, plain text, or JSON

Try It Out

You can try out RetrieveStorageObject below.

from indico.client import IndicoClient
from indico.queries import RetrieveStorageObject

client = IndicoClient()

# From another operation such as GetSubmission
result_url = "indico-file:///storage/submission/1/2/submission_3_result.json"

# Retrieve storage object
result = client.call(RetrieveStorageObject(result_url))
using IndicoV2;

// With provided token and host
var client = new IndicoClient(token, new Uri(host));
var storageClient = client.Storage();

// From another operation such as GetSubmission
var resultUrl = "indico-file:///storage/submission/1/2/submission_3_result.json";

// Retrieve storage object
var result = await storageClient.GetAsync(new Uri(resultUrl), default);
import com.indico.IndicoClient;
import com.indico.IndicoKtorClient;
import com.indico.storage.RetrieveBlob;
import com.indico.storage.Blob;

// Create client with config provided
IndicoClient client = new IndicoKtorClient(config);
RetrieveBlob retrieveBlob = client.retrieveBlob();

// From another operation such as GetSubmission
String resultUrl = "indico-file:///storage/submission/1/2/submission_3_result.json";

// Retrieve storage object
Blob blob = retrieveBlob.url(resultUrl).execute();