简单问题:如何在winforms pictureBox中显示检索到的ravendb附件图像。
附件被检索为
Raven.Abstractions.Data.Attachment attachment =
_store.DatabaseCommands.GetAttachment("upload/"+ 9999);
更新
使用像这样的附件保存图像
_Store.DatabaseCommands.PutAttachment("upload/" + attachId, null, ms,
new RavenJObject
{
{ "Content-Type", "image/jpeg" }
});
ms是内存流
答案 0 :(得分:2)