Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
#Automation
Hello guys,
We recently received a requirement to develop a service which sends a file to a Azure function app from webMethods. The function app is expecting a IFormFile as input. Do you have any idea which settings should be used for the pub.client:http service? We assume that the endpoint is expecting to receive data with multipart/form-data as content type so we know that in this case data should be passed to data/args but how can we pass the file name and the file bytes?
Thank you in advance, n23
You need to use pub.mime.* services for this.
Hello neimand,
For posting multipart data through pub.client:http service, you need to create MIME data using pub.mime:* services.
File data needs to be posted as byte and mapped to bytes and other details about file like file name or type will go as headers