You need to use MIME services for this purpose. I wish they made it simpler though. It's more difficult then doing it in a modern programing language, such as C#.
FYI, it can be rest, SOAP, or even an email. Mime is the only way to send/receive file through a webservice.
------------------------------
engin sarlak
------------------------------
Original Message:
Sent: Fri June 27, 2025 03:11 AM
From: ajay prasad
Subject: Processing a file receive through rest api in webmethods.
I have created a rest service in webmethod. My aim is to receive a text file from the source and process the data in webmethods. i am not sure how to process the same in webmethods. When i created a sample rest api with input as object type variable below was the response i got.
In my flow service pipeline there is no variable named content stream so i don't know how to proceed further.
Attached below is the snapshot of my postman response when i tried sending a sample file through it.

------------------------------
ajay prasad
------------------------------