I am trying to upload a PNG file as an item to Portal using /addItem using python post calls.
What format should 'file' be? I have tried converting to a binary image (a whole series of 0's and 1's) and also tried the file path. The item is created but it is "empty".
When I do this manually and look at the dev tools for the '/addItem' post, it is set as 'file: (binary)'. I am not sure how to create the '(binary)' file type using python.
Any help and code examples for this will be great, thanks very much.
Regards, Julian