Knowledgebase

Search:     Advanced search

Encoding Inline Image and Attachment File Data in the TestTrack SDK

Article ID: 484  |  Last updated: 30 Dec, 2014

File data for inline images in multi-line text fields and file attachments is stored in the m_pFileData member of the CFileAttachment object as a Base64-encoded string. The SOAP script or application used to add new attachments must encode the image or attachment file data. To display the data, it must be decoded using an implementation of Base64 for the programming language you are using.

For example, in .NET, you can use System.Convert.ToBase64String() to encode the binary data for a file attachment or inline image and then store the result in the m_pFileData member when adding a new attachment. You can use System.Convert.FromBase64String() to convert m_pFileData from Base64 to the original binary data for the file so it can be displayed, saved to a file, or used in another way.

Article ID: 484  |   Last updated: 30 Dec, 2014
Tags
encoding attachment SDK

Prev   Next
Auto-Assignment Rules Stop Working     Configuring External Authentication Components for TestTrack RM...