Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Future<void> sendImage() async {
AtKey atKey = AtKey();
atKey.key = 'pic';
/// Share with the other sign
if (shareWith) {
atKey.sharedWith = AtConstants().atMap[atProtocolService.currentAtSign];
}
String encodedImage = Base2e15.encode(
image.readAsBytesSync(),
);
await atProtocolService.atClientImpl.put(atKey, encodedImage);
notifyListeners();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment