Skip to main content
Solved

file upload to Indicium


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. 

View original
Did this topic help you find an answer to your question?
This topic has been closed for replies.

3 replies

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.


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

Thank you, it works now!

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


Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Administrator
  • 3966 replies
  • 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. 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings