Created
March 25, 2021 22:49
-
-
Save jtmuller5/c77c3b76d81caf88ec966aaa0f906b8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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