函数名
getFileBase64(path,extra)
函数介绍
方法名称:获取文件内容的base64编码参数说明:path:文件的绝对路径
extra:默认空或0为去掉base64头,填1则不去头
返回值:base64编码结果
函数例子
local path = "/mnt/sdcard/test.png"local e = getFileBase64(path)print("filebase64 ret:",e)