예제 #1
0
        public IBlob CreateBlob(byte[] bytes)
        {
            if (bytes == null)
            {
                throw new ArgumentNullException(nameof(bytes));
            }

            IBlob blob = new MemoryBlob(bytes);

            return(blob);
        }
예제 #2
0
        public IBlob CreateBlob(Stream stream)
        {
            if (stream == null)
            {
                throw new ArgumentNullException(nameof(stream));
            }

            IBlob blob = new MemoryBlob(stream);

            return(blob);
        }