public static bool UploadIntellect(Guid Account_ID, string name, byte[] data, string description) { if (db.Intellect == null) { Trace.WriteLine("db.Intellect == null"); } string uniqueBlobName = string.Format("intellects/{0}/{1}", Account_ID.ToString(), name); db.AddToIntellect(Intellect.CreateIntellect(Guid.NewGuid(), name, Account_ID, description)); db.SaveChanges(); CloudBlockBlob blob = container.GetBlockBlobReference(uniqueBlobName); blob.UploadByteArray(data); return(true); }