Update : Please ignore below. Issue is resolved by setting up request.timout field in code
Hi
@Shashank Kumar,
Thanks for your help with this .
I have used HTTP Utility and It was working fine until yesterday but now it is throwing below error
Could not execute code stage because exception thrown by code stage: Object reference not set to an instance of an object.
I have passed below/attached parameter

Update : This seems to be timeout error issue. It works with Smaller size. Is there any way to set timeout ?
It takes around 2 min 10 seconds before it throws an error
Also when I remove Try and Catch block , it throws below error
Could not execute code stage because exception thrown by code stage: The operation has timed out
Could you please assist with the possible cause and if it due to timeout, can you please let me know how to increase timeout ?
Note : Working fine through POSTMAN
------------------------------
Kirtish Trivedi
------------------------------
Original Message:
Sent: 07-19-2021 08:40
From: Shashank Kumar
Subject: Send .xlsx File using POST API
Hi Kirtish,
The latest Utility - HTTP on Digital Exchange has action for Multipart request. Have you already considered that for your solutioning?
------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
Original Message:
Sent: 07-19-2021 06:30
From: Kirtish Trivedi
Subject: Send .xlsx File using POST API
I have a requirement of sending .xlsx file using POST API.
I guess Ideal way of doing this is to use Single File option in WEB API configuration and passing Binary file from process.
But unfortunately the WEB API definition does not support the Binary File, even when used Binary File option from POSTMAN , it throws server error.
There are two options available it seems
1 ) Form-data : When I use this option in POSTMAN, it works fine but not sure how to use this option in Blueprism as Blueprism supports only below option
none
Template
Single File
Multiple File
Custome Code
2) Custom Code: Can someone guide how to use this option and code example of Posting xlsx file using content type multipart/form-data
------------------------------
Kirtish Trivedi
------------------------------