Answers for "flutter encode string to base64"

3

flutter convert file to base64

final bytes = Io.File(imageBytes.path).readAsBytesSync();

String img64 = base64Encode(bytes);
Posted by: Guest on June-06-2021
1

decode, encode base64 dart

import 'dart:convert';
String encoded = base64.encode(utf8.encode(credentials)); // dXNlcm5hbWU6cGFzc3dvcmQ=
String decoded = utf8.decode(base64.decode(encoded));     // username:password
Posted by: Guest on August-28-2021

Code answers related to "flutter encode string to base64"

Browse Popular Code Answers by Language