cancel
Showing results for 
Search instead for 
Did you mean: 

Making API requests using multipart-form data

bbastien
Level 4

Hello everyone ! 

I'm trying to use an API which does OCR, which means I'm supposed to send it an image file, and receive back a text which should include the text found inside the image.

I have tried to do so using only BluePrism's native web API services, but found that the multiple files option doesn't let me modify the request's body, and after looking into the forum's answers I found that it'd be better to use the http request multipart action.

Here's my problem though : When I try to send a request, I don't receive an error code but instead am told that an exception was thrown by the code stage : "one or more errors occurred", which makes it really hard for me to see what I'm doing wrong.


Below are screenshots of my overall collections, as well as that of the postman request which I am trying to base myself off in BluePrism:

bbastien_0-1736413417913.png

bbastien_1-1736413634196.png

bbastien_5-1736414898927.png

 

bbastien_2-1736414063832.png

 

bbastien_3-1736414190170.png

 

 

If someone know what I'm doing wrong  or even how I could fix my problem, I'd be very thankful !


Thank you in advance,

Bastien

 

12 REPLIES 12

Noticed that FieldName in Postman is "image" but it's set to "request" in BP configuration

I'm sorry, I'm not sure which one you mean. Are you referencing Nandhakumar's screenshot of his fileMetadatacollection ?

I think I misread. FileMetadata.FieldName is set as "image" already in your configuration