OpenAPI 3.0 provides a way to define file uploads using type as string and format as either binary or base64, with base64 the file content is actually encoded using base64 before sending to the provider.
When webMethods Integration Server receives such file upload with base64 format, the file content will get decoded before actually reaching to the service.
requestBody: content: image/jpg: schema: type: string format: binary
requestBody: content: text/html: schema: type: string format: base64
For file upload, the services generated by webMethods Integration Server will have an input of type byte.
Note: For base64 format, we need to encode the file content with base64 before passing them through the request.
File upload OpenAPI 3.0 (Provider)
File upload OpenAPI 3.0 (Consumer)
** Beware of handling large files in this manner. Can exhaust memory because the entire content is loaded into memory.