public string text(string c /* container name */, string b /* blob name */) { BlobHelper bh = new BlobHelper("default"); string content = String.Empty; bh.GetBlob(c, b, out content); return content; }
public binaryBlob bytes(string c /* container */, string b /* blob */) { binaryBlob blob = new binaryBlob(); BlobHelper bh = new BlobHelper("default"); byte[] bytes = null; bh.GetBlob(c, b, out bytes); blob.containerName = c; blob.blobName = b; if (bytes != null) { blob.bytesEncoded = Convert.ToBase64String(bytes); } else { blob.bytesEncoded = null; } return blob; }