problem loading picture with id3com
Brought to you by:
t1mpy
hi!
i am using id3lib/id3com with vb.net.
loading/saving binary data from image files
with "CopyDataFromFile()" and "CopyDataToFile()"
works just fine, but no pic appears i.e. iTunes
maybe mime type field is mandatory for this? How do i
set the indexed Text property right?
VB-code to load pic:
oFrame = Me.FindFrame
(eID3FrameTypes.ID3_PICTURE, True)
oFrame.Field
(eID3FieldTypes.ID3_FIELD_MIMETYPE).Text(1)
= "image/png" 'nothing happens..
oFrame.Field
(eID3FieldTypes.ID3_FIELD_DESCRIPTION).Text(1)
= "my png file" 'nothing happens..
oFrame.Field
(eID3FieldTypes.ID3_FIELD_PICTURETYPE).Long = 11
oFrame.Field
(eID3FieldTypes.ID3_FIELD_DATA).CopyDataFromFile
("image.png")
SaveV2Tag()
Thanks
/S
Logged In: YES
user_id=1474421
Got the same problem.
Before I used an older version of the dll and it worked
excepted that probably due to insufficient padding it cut
the begining of the songs! Then I upgrading to a newer
verson and now I have this problem even if there is no more
padding issue.