问题
Is the image ID returned by sp_album_cover and sp_artist_portrait zero terminated? or is its length fixed?
Thanks.
回答1:
It's an opaque struct: i.e., its contents are undefined.
If you want a sane way of printing or storing an image, convert it to a link then a string: sp_link_create_from_image() followed by sp_link_as_string().
来源:https://stackoverflow.com/questions/10882295/libspotify-api-image-id-format