如何从本地文件创建DotCMIS.Data.IContentStream对象?
本教程仅描述如何从内存中的字节数组创建一个:
byte[] content = UTF8Encoding.UTF8.GetBytes("Hello World!");
ContentStream contentStream = new ContentStream();
contentStream.FileName = "hello-world.txt";
contentStream.MimeType = "text/plain";
contentStream.Length = content.Length;
contentStream.Stream = new MemoryStream(content);