How to Upload File via Form & Send to REST API Using Base64

How to upload a file through ‘upload File’ control in the form. Now we need to upload it to the REST API service by Base 64 encoder

Comments

  • To upload a file using the 'Upload File' control in a form and send it to a REST API service by encoding it in Base64, please follow these steps:

    1. Upload File Control: Use the 'Upload File' control in your form to allow users to upload files. This control captures the file data that needs processing.
    2. Base64 Encoding: Use the 'Base64 Encode' step to convert the uploaded file data into a Base64 string.
    3. REST API Integration:
      • Navigate to 'External Services' under 'Data Types' in Decisions.
      • Select 'Add REST Service' and provide the service name and base URL.
      • Configure any required authentication.
    4. Send to REST API: Use the 'POST With Credentials' step to send the Base64 encoded string to the REST API. This step allows you to include the encoded file data in the request body and authenticate as needed.


Sign In or Register to comment.