BinaryData
The
BinaryData
type enables you to use binary data in the Application Engine.For example, you can load an image from your local hard drive and upload it to a repository as shared media:
BinaryData binaryData = ReadBinaryDataFromLocalFile(fileName);
string name = RepositoryCreateSharedMedia(repositoryConnection, mediaUniqueName, mediaDescription, fileName, SharedMediaType.Picture, binaryData);
You can create binary data attachments in a repository:
string attachment = RepositoryCreateFile(repositoryConnection, "TestBinaryData", binaryData);