Skill level: Intermediate
Time required: 4 minutes
This article demonstrates the process of converting the image content into an encoded base64 string format using Utilities by Quickwork.
Prerequisites
A Quickwork account and and familiarity with the platform's GUI.
- How to pick up public image URLs
What is Utilities by Quickwork
Utilities by Quickwork is an in-house app which means no authorization, connection, and permissions are required to perform its operations. It just requires raw user input data to start executing the intended action and give a response.
Rules for converting the content of the web images:
- The image URL must start with https:// (not data:image).
- The image format should be .jpeg, .png, .gif, or other supported types.
- Images stored in Amazon S3 buckets cannot be encoded.
- Avoid using public images with excessively long URLs.
Violation of any of the above rules will result in an error.
Step-by-step guide
Configuring the trigger
- Under the Event section, choose the Scheduler by Quickwork app from the drop-down menu in the Apps field present right below the New Trigger button.
- Select the trigger event, New scheduled event, from the drop-down menu in the Triggers field.
- Set the Interval as per your choice based on how many times you want the journey to run.
- Set the date and time of your choice in the Start At field and keep the Custom Payload field empty.
Configuring the Utilities by Quickwork action
- Under the Steps section, click on the Simple Action button and choose the Utilities by Quickwork app from the drop-down menu in the Apps field.
- Select the Convert file content action from the drop-down menu in the Action field.
- No authorization or connection creation is required since this app is created by Quickwork itself.
- n the File URL input field, provide the public image URL that meets the rules mentioned earlier.. For example, https://cdn.shopify.com/s/files/1/0464/1364/3927/products/byVilainRushhaircare2packwithbrush_500x.jpg?v=1616599351.
- Select the Method as GET as you are fetching the Base64 code.
Executing the journey
- Save the journey by clicking the Save & Start button.
- Once the journey runs, you will be redirected to the History tab.
- Expand the Utilities by Quickwork action bar in the Steps section.
- Review the Output block to view the encoded Base64 string.
The content of your image has been successfully converted into a Base64 string format.
Comments
0 comments
Please sign in to leave a comment.