Hi there
I am after some advice for the correct format for sending a request to Kentico REST for creating a CMS.Attachment object. I have followed the instructions at the below link:
https://docs.kentico.com/k81/integrating-3rd-party-systems/kentico-rest-service/manipulating-data-using-rest
I am getting a bad 400 request error.
I've tested by removing the 64 bit binary data string from the request and the request goes through fine so the problem appears to be with the <AttachmentBinary></AttachmentBinary>
attribute, or rather, what I am sending via this attribute.
I am using .Net and populating the above attribute with Convert.ToBase64String(loAttachmentBinary)
where loAttachmentBinary is a Byte() object of the source PDF file.
Some assistance would be great.
Cheers,
Brad