Failing to download file from XBMC
#1
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!
Reply
#2
The returned data is base64 encoded, so you need to decode it.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
Failing to download file from XBMC0