2008-08-26, 10:27
Hi,
i'm using the http API (specifically the "FileDownload" command) to download the thumb/cover of the currently playing movie. It somewhat works but for some reason the data is enclosed in <html> tags.
Therefore the resulting image is not readable. Even if i remove the html tags with a text editor it results in a corrupt file (not suprising after editing a binary file.. ).
Anyways i was wondering why these html tags are around the actual data and how i can manage to save a valid image from the data i get.
Thanks!
i'm using the http API (specifically the "FileDownload" command) to download the thumb/cover of the currently playing movie. It somewhat works but for some reason the data is enclosed in <html> tags.
Therefore the resulting image is not readable. Even if i remove the html tags with a text editor it results in a corrupt file (not suprising after editing a binary file.. ).
Anyways i was wondering why these html tags are around the actual data and how i can manage to save a valid image from the data i get.
Thanks!