public static Uri WriteImage(Byte[] imageData, Guid pictureGuid) { CloudBlockBlob newBlob = BlobHandler.Connect(pictureGuid); newBlob.UploadFromByteArray(imageData, 0, imageData.Length); return(newBlob.Uri); }
public static Byte[] ReadImage(Guid pictureGuid) { CloudBlockBlob blob = BlobHandler.Connect(pictureGuid); blob.FetchAttributes(); Byte[] result = new Byte[blob.Properties.Length]; blob.DownloadToByteArray(result, 0); return(result); }