Views:
Question:
Using the .NET SDK, can you use a Byte Array to upload a file? 

Answer:

Byte Array can be used to upload a file. Please view the following example of how this can be achieved;
 
public static void ByteArrayUpload(FileCabinet fileCabinet, byte[] content, string contentType = "application/octet-stream")
{
    fileCabinet.PostToAdvancedDocumentUploadRelationForDocument("application/octet-stream", new MemoryStream(bytes));
}
 
KBA is applicable for both Cloud and On-premise Organizations.