Python - COM interface file pointer

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Python - COM interface file pointer

Re: Python - COM interface file pointer

by ninov » Mon Oct 21, 2013 2:57 pm

Oh, thanks.
Stupid me.

Re: Python - COM interface file pointer

by Peke » Sun Oct 20, 2013 7:31 pm

I guess that you haven't read closely http://www.mediamonkey.com/wiki/index.p ... :ImageData If you can't access Pointer to read data from Python than save it to temp file and read it from PY.

Python - COM interface file pointer

by ninov » Sun Oct 20, 2013 8:52 am

Hi,
I am trying to access the cover of the currently playing song in Python via COM interface.

Code: Select all

# (...)
song = self.Player.CurrentSong
cover = song.AlbumArt
if cover.Count >= 1:
    cover = cover.Item(0).Image.ImageData
    # (...)
Now cover only returns a integer as file pointer. How can I use this file pointer to access the cover file?

Top