Simple question: how to display retrieved ravendb attachment image in winforms pictureBox.
Attachment is retrieved as
Raven.Abstractions.Data.Attachment attachment =
_store.DatabaseCommands.GetAttachment("upload/"+ 9999);
update
Image is save with put attachment like this
_Store.DatabaseCommands.PutAttachment("upload/" + attachId, null, ms,
new RavenJObject
{
{ "Content-Type", "image/jpeg" }
});
ms is memory stream