CONVERSION LOGIC
Convert an image to a Base64 Data URL
Read the file locally and represent its bytes as a browser Data URL.
Image fileBase64 Data URLRuns locally
01Image file
02FileReader → Data URL
03Base64 Data URL
The output begins with a data:image/... prefix.
Base64 usually increases text size
Encoding binary bytes as Base64 typically needs more characters than the original binary representation.
Your content stays in the browser
Processing runs locally in the page without requiring the content to be sent to UtilityLake.
02
In short
What exactly does it do?
Read the file locally and represent its bytes as a browser Data URL.
Example?
The output begins with a data:image/... prefix.