Zetbox.API.FileSystemPackageProvider.GetBlob C# (CSharp) Method

GetBlob() public method

public GetBlob ( System.Guid guid ) : Stream
guid System.Guid
return Stream
        public override Stream GetBlob(Guid guid)
        {
            var file = Directory.GetFiles(_blobDir, string.Format("{0}*.*", guid)).FirstOrDefault();
            if (string.IsNullOrEmpty(file)) throw new FileNotFoundException();
            return File.OpenRead(file);
        }