Posts: 17
Joined: Jul 2008
Reputation:
0
I've been attempting the same thing. I believe you can use the FileDownload command in the API or use the CopyFile command which would allow you to copy the thumb to a folder that is exposed to the web server.
Hopefully, someone can confirm or set me straight.
Posts: 35
Joined: Nov 2008
Reputation:
0
pummra
Junior Member
Posts: 35
I may be being really dim but I can't seem to decode any thumbnails should the below code work?
$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,'http://10.0.0.2/xbmcCmds/xbmcHttp?command=GetThumb(C:\Documents%20and%20Settings\jenkins\Application%20Data\XBMC\userdata\Thumbnails\Video\9\99caa6a6.tbn)');
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);
$test = curl_exec($curl_handle);
curl_close($curl_handle);
$ifp = fopen( "image.jpg", "wb" );
fwrite( $ifp, base64_decode( $test) );
fclose( $ifp );
It creates the image but the image doesn't open. Can anyone help.
Posts: 35
Joined: Nov 2008
Reputation:
0
pummra
Junior Member
Posts: 35
Can anyone help me with this? I am wanting to create a new web interface to control XBMC but am coming across this stumbling block and can't get round it.
Posts: 35
Joined: Nov 2008
Reputation:
0
pummra
Junior Member
Posts: 35
is there anyone who can give me a clue on this?
the above code was in PHP.
Posts: 35
Joined: Nov 2008
Reputation:
0
pummra
Junior Member
Posts: 35
I'm an idiot, I just didn't have the bare parameter set!