Hello,
I would like to ask you how can I send a document from IDM API to another API with the non-infor API required the document in formdata and as a file type.
Is anyone done it?
Thank you very much
Best regards
Zdenek
Zdenek - It appears that API call has a multipart/form-data input content type, which is not supported from within ION. You would need to convert the document to base64 string and then call the standard IDM API to Add an item.
You could potentially setup the SteamServe adapter, where you could "drop" off the file to a share that the StreamServe adapter would monitor and upload to IDM.
There are quite a few ways to get documents into IDM, but unfortunately formdata does not appear to be one of them; unless it is application/x-www-form-urlencoded.
Zdenek - There are several API's available to retrieve an item. You would have the ability to get the resource information or a binary stream of the file, through these API's. I would investigate the API's for IDM, and there are other community posts that talk about this process. Otherwise, please provide more specific information about your use case. Hopefully this helps.
Hello Brandon,
next time I will be more specific.
I tried almost every API in IDM to download the original file uploaded in the IDM.
I found some API in the community but it did not work for me.
I used this API:
The problem is in the stream original dream is on the LEFT and the stream from IDM API is on the RIGHT:
I am using InforOS 2020.06 on-premise.
Thank you.
I did it by using idm api */items/search/item/resource/stream that works fine.
Zdenek,
Using IDM client, are you sure that IDM file is the same than original file?
Regards Fred
Zdenek - The binary stream should still be valid. Where are you trying to send it after you have the binary. Some outside resources would accept it. My projects required the binary stream to be converted to base64 encoded string. I did that using a File Connection point. I would drop off the document as binary and then re-pick it up, but using the XML BOD for Sync.Binary files. This process would base64 encode the document and be viable to send to outside resources.
Hi Brandon,
Thank you for your answer, but the problem is in this API:
It required a content type file (formData) and am not able to get it from IDM API and put it to this API via DataFlow or do you have any idea how can I do it?
Thank you again
Regards