Nitric logo

Storage

bucket.file.get()

Get the contents of a file from a bucket.

using Nitric.Sdk;
using Nitric.Sdk.Storage;

var assets = Nitric.Bucket('assets').With(BucketPermission.Reading);

var logo = assets.File('images/logo.png');

var logoData = logo.Get();

Nitric.Run();

Examples

Get a file

using Nitric.Sdk;
using Nitric.Sdk.Storage;

var assets = Nitric.Bucket('assets').With(BucketPermission.Reading);

var logo = assets.File('images/logo.png');

var logoData = logo.Get();

Nitric.Run();
Previous
bucket.files()