Programatically Get File Attachment
Posted: Thu Dec 19, 2013 2:00 pm
We're using Vault Pro 5.1.2 and C# .NET
I have tried using the API to retrieve a file attachment on a Vault/Dragnet item, but the AttStream property of the MantisItemAttachmentFullDetail object is null. I presume this is because the API does not support serializing/deserializing files between the server and client.
I have also tried getting the FileContents field from the dbo.attachments table in the sgdragnet database, but the field uses a text data type which I haven't been able to properly convert to binary.
Can I get some advice on how to properly deserialize the text FileContents field into binary or how to use the API to retrieve a file attachment?
I have tried using the API to retrieve a file attachment on a Vault/Dragnet item, but the AttStream property of the MantisItemAttachmentFullDetail object is null. I presume this is because the API does not support serializing/deserializing files between the server and client.
I have also tried getting the FileContents field from the dbo.attachments table in the sgdragnet database, but the field uses a text data type which I haven't been able to properly convert to binary.
Can I get some advice on how to properly deserialize the text FileContents field into binary or how to use the API to retrieve a file attachment?