I'm trying to display a cover image from an MP3 file. I'm getting the ID3 tags from https://github.com/NiKoTron/dart-tags.
My Code:
TagProcessor tp = TagProcessor();
tp.getTagsFromByteArray(bytes).then((l) async {
AttachedPicture picture = l[1].tags['picture']['Cover (front)'];
log(picture.toString()); // ->[log] {mime:image/png, description:, bitmap: iVBORw0KGgoAAAANSUhEUgAABLAAAASw...}
});
The mime: image/png is just a string, so I don't exactly know how to get the image.