Example #1
0
        public OperationOutcome BinTest()
        {
            IBlobStorage store = DependencyCoupler.Inject <IBlobStorage>();

            byte[]       byteArray = Encoding.UTF8.GetBytes("Hello world!");
            MemoryStream stream    = new MemoryStream(byteArray);

            store.Open();
            store.Store("maintenanceblob", stream);
            store.Close();
            return(new OperationOutcome().Message("Binary test completed."));
        }