.NET - Bucket.File.Read()

Read 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.Read();
Nitric.Run();

Examples

Read 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.Read();
Nitric.Run();
Last updated on Dec 5, 2024