Skip to main content
Answer

file upload to Indicium

  • July 26, 2024
  • 3 replies
  • 80 views

Forum|alt.badge.img

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?

Best answer by Mark Jongeling

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. 

This topic has been closed for replies.

3 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Administrator
  • Answer
  • July 26, 2024

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. 


Forum|alt.badge.img
  • Author
  • Rookie
  • July 26, 2024

Thank you, it works now!

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


Forum|alt.badge.img+4

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.