C# .NET is in development for v1. Interested in contributing or chatting with us?Get in touch!
.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();