Hello experts We are going to update Mendix fileDocument using REST API. But it always to create a new object in Mendix DB, content is a hidden binary, we can’t copy the content to existing Object, I also tried communityCommons, there are a couple of Java Actions to duplicate filedocument/content, but before committing new object, we can’t read content. Is it possible to update original Object? Please advise.
asked
Zhaojie Liu
2 answers
2
Hi,
We have implemented a solution with has two steps. The first call/post is with the metadata of the filedocument, the second call/post is with the contents. This was because of files up to 100mb and base64 encoding these was giving performance issues.
This is the second step (published side) where only the contents are received.
This is the first and second step (consumed side)
Second REST call:
answered
Sjors Schultz
0
Do a base64 encode and decode for the binary. You then transport the binary as string.