Add base64 code from dart:io