XBMC http api, can it send a proper header for *.tbn files?
#1
So I pull a thumbnail w/ the HTTP api which returns a content type of text/html.

Would it be possible to return a proper image format header instead of text/html without using some type of proxy server?

http://192.168.2.151:80/xbmcCmds/xbmcHtt...fb9315.tbn

Which the server responds w/

HTTP/1.0 200 OK
Server: GoAhead-Webs
Pragma: no-cache
Cache-control: no-cache
Content-Type: text/html

<html>
/9j/4AAQSkZJRgABAQEAZABkAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsN
DhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQU
FBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCAJUAbYDASIAAhEBAxEB/8QA
HwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIh
MUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVW
V1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXG
x8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQF
BgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAV
YnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE
hYaHiImKkpOUlZaX..... rest of image info
</html>
Reply
#2
I'll take a peek at that as I know it used to be returned as a base64 encoded img tag.

It looks like it was deprecated but still there. Try this as a test please:

http://192.168.2.151/xbmcCmds/xbmcHttp?c...tbn;imgtag

** edit ** i know this is a half-assed work around. The content type should just be corrected to be Content-type: image/jpg
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.
Reply
#3
This part tells me that this issue doesn't exist (at least in its current form) in recent builds:
Quote:Server: GoAhead-Webs

TheUni
Reply
#4
I think the problem would still exist as the httpapi code was designed around html'ifed responses.
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.
Reply
#5
kraqh3d Wrote:I'll take a peek at that as I know it used to be returned as a base64 encoded img tag.

It looks like it was deprecated but still there. Try this as a test please:

http://192.168.2.151/xbmcCmds/xbmcHttp?c...tbn;imgtag

** edit ** i know this is a half-assed work around. The content type should just be corrected to be Content-type: image/jpg

Sort of works but only displays part of the image.
Reply
#6
This is for my CommandFusion remote. CommandFusion iViewer has been updated and greatly eases scrollable list creation.

Image
Reply
#7
I suspect JSON-RPC will make this easier for you. Though it's not supported on XBOX if that's an issue.
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
#8
Here is the command to do it

http://192.168.2.151:84/thumb/special://...e0.tbn.jpg
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC http api, can it send a proper header for *.tbn files?0