Skip to main content
Solved

file upload to Indicium

  • 26 July 2024
  • 3 replies
  • 54 views

Hello,

I am posting some data from an external source to Indicium. It works fine, so everything is set up correct.

However I am also trying to upload a file. I am using a setup like this one:

I have tried a lot of variations in the body of the POST (not just the one below), but until now to no avail:

      "Attachment1_name": {

        "FileName": "example.txt"

        },

      "Attachment1_data": {

        "FileType": "text/plain",

        "FileData": "0x74657374"

        }

Does anybody have experience with this?

Hello @JurreKoning,

Great to hear that your problem has been solved. For future reference, if anyone else ends up at this topic, you can find an explanation in our documentation here.


Thank you, it works now!

I even read that post but for some mysterious reason I completely overlooked the base64 part 🤦🏻


Edited: For future reference, when anyone else ends up at this topic, you can find an explanation in our documentation here.

Hi Jurre,

Vincent explained it a while ago here: How to upload a file using Indicium 2021.1 | Thinkwise Community (thinkwisesoftware.com)

"file_column": { "FileName": "picture.png", "File": <base64 encoded file data> }

So the varbinary data needs to be converted to Base64 first before included in a request. 


Reply