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
- 83 All Categories
- 15 VoIP
- 7 SIP
- 11 asterisk
- 41 Programming
- 1 Nodejs
- 4 javascript
- 18 PHP
- 8 Codeigniter
- 12 database
- 1 UI/UX
- 2 Flutter
- 25 OS
- 23 Linux
- 1 Virtualization
- 1 Android
- 1 Windows
- 2 legal