Skip to contents

Convert file to 'base64' format

Usage

to_datauri(file, mime = "")

Arguments

file

file path

mime

'mime' type, default is blank

Value

a 'base64' data string looks like 'data:;base64,AEF6986...'