How to convert List<int> got from an image into to image again?
Answers
-
If you already have the image data and want to show it,
you can create a MemoryImage (or use Image.memory if you need an Image widget).0 -
If you have a List that represents a list of 8-bit bytes and want to write it to a file,
you can simply use File.writeAsBytes. (It's the inverse of File.readAsBytes, which you're already using.)await File(desiredDestinationPath).writeAsBytes(bytes);
0
Howdy, Stranger!
Categories
- 94 All Categories
- 20 VoIP
- 7 SIP
- 16 asterisk
- 44 Programming
- 1 Nodejs
- 4 javascript
- 19 PHP
- 8 Codeigniter
- 14 database
- 1 UI/UX
- 2 Flutter
- 28 OS
- 26 Linux
- 1 Virtualization
- 1 Android
- 1 Windows
- 2 legal