Skip to main content

Base64 File Converter

Convert any file using the file URL to Base64 value which can be used to send files as an attachment in an email

Global Parameters

There are no global parameters for this pipe.

API Calls

This pipe contains the following API calls:

Convert File to Base64

All parameters with an asterisk (*) are required in order to trigger the pipe.

Parameters
  • URL* - Enter the URL of the file you would like to convert to Base64.

Response

The following responses are returned by the API call.

  • Status
  • File URL
  • Filename
  • Base64 - The Base64 encoded file.
  • Raw Output
  • MimeType
  • Size in Bytes
  • Size in Kilobytes
  • Size in Megabytes

Convert Base64 Image to JPG

This API call converts a base64 encoded string to a jpg file and saves the jpg image back to your Tadabase record. 

All parameters with an asterisk (*) are required in order to trigger the pipe.

Parameters
  • Base64 Image* - The base64 encoded string.
  • Table ID* - Which table would you like to save the jpg file to? To find the Table ID manually for testing purposes, navigate to the Table, and check the URL. The ID in the URL path between 'dataTables' and 'records' is your Table ID. In the example below, the Table ID of the Order Items table is eykNOvrDY3. You can also select the Table ID from the Record Value when setting the pipe parameters. 

  • Field Slug* - Which field would you like the jpg file to be saved to? In the "Fields" tab of the data table, click the settings icon in the top right corner, and check "Show Field Slug" to view the Field Slugs. 

  • Record ID* - Which record would you like the jpg file to be saved to? Enter the ID of the Record where you would like to save the converted file. You can get the Record ID by checking the URL, selecting it as a pipe parameter, or saving it to your table with a table rule. 
  • App ID* - Navigate to Settings -> API Keys to obtain your API credentials.

  • API Key* - Navigate to Settings -> API Keys to obtain your API credentials.

  • API Secret* - Navigate to Settings -> API Keys to obtain your API credentials.

Response

The following responses are returned by the API call.

  • Status - Was this pipe triggered successfully or not.
  • Message 
  • Record ID - The ID of the record the image was saved to.
Example: