Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2008

    Creating / Updating contactpicture

    Hello folks,

    Is it still not possible to access the contact picture through the Python API?

    The docs i have read say that it is not possible. Or is there any other way to change the contact picture?

    Thanks in advance

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2007
    Deva, Romania

    Re: Creating / Updating contactpicture

    Hi and welcome to the Python discussion board.

    From the documentation:
    If 3rd edition of Series 60 is used the following field types can be added:
    So if that "picture" refers to the thumbnail picture that is displayed in the contact, it should work. But I've tried to set a picture to a contact and it didn't work. Perhaps you'll have better luck than I did. See this article, if you haven't already, about adding info to contacts.

    Good luck

  3. #3
    Registered User
    Join Date
    Jun 2008

    Re: Creating / Updating contactpicture


    Actually I have read this article. I am currently getting no error
    with this code:

    import contacts
    if __name__ == '__main__':
        db = contacts.open()
        newc = db.add_contact()
        newc.add_field('first_name', 'fobbar')
        newc.add_field('mobile_number', '555545444')
        newc.add_field(u'picture', open(u'E:\\python\\foo.jpg'))
    But this code does not add a picture.

    Any suggestions?

  4. #4
    Regular Contributor
    Join Date
    Dec 2007
    Tempe, AZ

    Re: Creating / Updating contactpicture

    Suggestion needed? ok see it might be stupid one, but still can you verify your image location as you are getting no error.
    And can this contact picture be of "JPG" format?

    PS-> I dont have a 3rd Edition phone so i might be sounding very foolish.
    Last edited by shubhendra; 2008-06-23 at 13:57.
    IDEAS is all they need but still they think only Genius can give them that.

  5. #5
    Registered User
    Join Date
    Dec 2008

    Re: Creating / Updating contactpicture


    I tried too to get picture DB contacts by using contact.find('picture') but it did'nt work.

    It is better with contact.find('thumbnail_image') because it returns a field but when i try to get the image, the value of the field returns a unicode string of the image which is stored in binary.

    Is there any champion who knows how to get back the contact picture in image type using PYS60 ? (is there a solution with 2.0 or extension module ?)

    Thanks a lot

Similar Threads

  1. Replies: 0
    Last Post: 2008-01-29, 12:53
  2. Problem in build with S60 1FP
    By Manuelito_ in forum Symbian Tools & SDKs
    Replies: 14
    Last Post: 2007-09-18, 12:08
  3. Difference between creating View and Window
    By thilsen_06 in forum Symbian
    Replies: 0
    Last Post: 2007-02-09, 10:00
  4. abld command
    By kollar in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2003-02-03, 07:51
  5. Problem with bldmake bldfiles for Series 60 SDK 6.1
    By dml in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts