Hi all,
I'm trying to use the Vantage REST API for the first time to process documents using a skill. I've tried doing this through the Swagger interface and also via Postman, which works great - I see the transaction created in Vantage and it processes successfully.
The end goal however is to have a third-party system send this request (specifically I'm using Laserfiche Cloud). When I send the request from the third party system, I check the transaction monitor in Vantage and I see the following error on the transaction:
AggregateException. The image file format has not been recognized: .blob.6613eb1f-c09a-4a83-9df9-e5XXXXXXXXX
As far as I can see, the request I'm sending from the third party application is exactly the same as what I'm doing through Swagger/Postman, so I don't understand why this method gives a different result. Does anyone know what might be causing this please? I have included my request to upload files to the transaction below.
Kind regards,
Dan
POST https://vantage-eu.abbyy.com/api/publicapi/v1/transactions/<Transaction ID>/files
Content-Type: multipart/form-data; boundary=abcde12345
--abcde12345
Content-Disposition: form-data; name="Model"
Content-Type: application/json
{
"files": [
{
"index": 0,
"imageProcessingOptions": {
"autoCrop": "Default",
"autoOrientation": "Default"
}
}
]
}
--abcde12345
Content-Disposition: form-data; name="Files"; filename="Test.pdf"
Content-Type: application/pdf
Content-Transfer-Encoding: base64
<Document Base64 String>
--abcde12345--
Comments
2 comments
Hi ,
Have you check that the file you uploaded , is accessiable and not passworded?
Hi John,
Yes the file I'm using is a simple PDF file. As I said if I use this same file via Swagger or Postman ABBYY processes it fine.
For the transactions where I see the error, I have also downloaded the source document via the API, and the document downloads and opens fine.
Please sign in to leave a comment.