/// <summary> /// Retrieves blob object from database. /// </summary> /// <param name="key"></param> /// <returns> /// null when no blob found /// </returns> public static Blob RetrieveBlob(HashKey key) { string fileName = key.ToString(); string fileContent = ReadFileContent(fileName); if (fileContent == null) { return(null); } return(Blob.ParseFromString(fileContent)); }