Hello All,
please how to download Files via the Aras Innovator REST API.
thank you .
Best Regards.
Hello All,
please how to download Files via the Aras Innovator REST API.
thank you .
Best Regards.
Hello,
You can do this by appending $value to the end of a REST call for a File item. For example, we could get the metadata for a File that's related to a Document by performing the following request.
GET {base url}/Document('8C6CEBD3DF1044CEB0B1658693735130')/Document File('9925FBEFB76346A9B898713A94059342')/related_id
We can get the actual content of that File to download by just adding $value to the end like so:
GET {base url}/Document('8C6CEBD3DF1044CEB0B1658693735130')/Document File('9925FBEFB76346A9B898713A94059342')/related_id/$value
Chris
Christopher Gillis
Aras Labs Software Engineer
Hello,
You can do this by appending $value to the end of a REST call for a File item. For example, we could get the metadata for a File that's related to a Document by performing the following request.
GET {base url}/Document('8C6CEBD3DF1044CEB0B1658693735130')/Document File('9925FBEFB76346A9B898713A94059342')/related_id
We can get the actual content of that File to download by just adding $value to the end like so:
GET {base url}/Document('8C6CEBD3DF1044CEB0B1658693735130')/Document File('9925FBEFB76346A9B898713A94059342')/related_id/$value
Chris
Christopher Gillis
Aras Labs Software Engineer
As a note on this answer, Subscribers and Partners can go to the Documentation folder of the Aras Innovator CD Image to find the RESTful API.pdf which contains a number of samples for using the API. This example can be found in the section on File Properties.
thanks Chris that was a useful hint.
now I can download the files using java client
still, I have a problem with the returned file encoding content
example :
original content : ©1'÷õ"å
returned content : �1'��"�
Even via postman I got the same problem with content-encoding