I am using the code below to save a picture to song tag.
I cant see the picture in File explorer or Some media player.
The pictures is saving but the file icon isn't changing and the picture isn't visable with Media Player for exmple Groove on windows.
but I can see the picture when debbging
TagLib.File file = TagLib.File.Create(Server.MapPath("/A$AP Rocky - Everyday (Audio) ft. Rod Stewart, Miguel, Mark Ronson.mp3"));
System.Drawing.Image image = System.Drawing.Image.FromFile(Server.MapPath("/default.jpg"));
TagLib.Picture pic = new TagLib.Picture();
pic.Type = TagLib.PictureType.FrontCover;
pic.Description = "Cover";
pic.MimeType = System.Net.Mime.MediaTypeNames.Image.Jpeg;
MemoryStream ms = new MemoryStream();
image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
ms.Position = 0;
pic.Data = TagLib.ByteVector.FromStream(ms);
file.Tag.Pictures = new TagLib.IPicture[] { pic };
file.Save();
ms.Close();