downloadFromUrl64(url) Last updated: 30. May 2026

Downloads text from specified URL and BASE64 encodes it.

See also: downloadFromUrl httpGet

Parameters

Name Type Description
url string

URL to call with HTTP GET.

Returns

Returns downloaded string BASE64 encoded.

Example

Code example (#JS)

#JS is mixed HTML (or other text file) with inline JavaScript with # starting and ending each inline statement.
#{
    var base64 = docly.downloadFromUrl64("https://example.com/image.png");
    docly.print(base64);
}#

Output

The #JS code above produces the output shown below:
Only works in API functions, no demo.