- DEPRECATED, USE https://nim-lang.github.io/Nim/uri.html#basic-usage-data-uri-base64 instead!.
- Data URI Base64 UTF-8 Nim module.
nimble install https://github.com/juancarlospaco/nim-datauri
file2datauri()
Description: Convert a file path string to a Data URI Base64 string.
Arguments:
filename
A file path string,string
type, required.
Returns: Data URI Base64 string
type.
datauri2file()
Description: Convert a Data URI Base64 string to a file.
Arguments:
datauri
A Data URI Base64 ,string
type, required.filename
A file path string,string
type, required.
Returns: Return value of writeFile()
, cint
type.