Answer the question
In order to leave comments, you need to log in
How to send/teach a file via OData REST API 1C?
I work with REST API OData in 1C. There are no problems with creating/getting objects.
But I ran into a problem when adding / receiving files through this interface.
I create an object in "Catalog_ContractsContractorsAttachedFiles" - the object is created without problems.
If you look in $metadata, the object has the following parameters:
...
<Property Name="Расширение" Type="Edm.String" Nullable="true" />
<Property Name="ТекстХранилище_Base64Data" Type="Edm.Binary" Nullable="true" />
<Property Name="ФайлХранилище_Base64Data" Type="Edm.Binary" Nullable="true" />
<Property Name="ТекстХранилище" Type="Edm.Stream" Nullable="true" />
<Property Name="ФайлХранилище" Type="Edm.Stream" Nullable="true" />
...
Answer the question
In order to leave comments, you need to log in
They helped with the solution of the issue at Infostart.
For those who are interested, see here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question