Changing a contact picture?

Discussion in 'Jiggy Runtime Development' started by inZania, Jul 2, 2008.

  1. inZania

    inZania New Member

    Joined:
    May 29, 2008
    Messages:
    1
    Likes Received:
    0
    Hey all - I'm beginning looking at how to do this myself, but if anyone already knows the answer and would be so kind:

    Is there a way to change the picture which identifies a contact in the iPhone contact book through Jiggy? I've got a great idea for an application, but need to figure this out. At "/private/var/root/Library/AddressBook/" there is a file called AddressBook.sqlitedb; I assume I can query this with the SQLite feature in Jiggy... but if anybody else has experience doing something similar I'd love to chat.

    Cheers and thanks for any help.
  2. PAEz

    PAEz New Member

    Joined:
    Jan 29, 2008
    Messages:
    201
    Likes Received:
    10
  3. curthard89

    curthard89 New Member

    Joined:
    Sep 15, 2007
    Messages:
    178
    Likes Received:
    1
    Device:
    iPhone 3GS (Black)
    The image has to be inserted as data. The sqlite field for the image has a type of 'blob'. Data has to be saved into 'blob' otherwise when pulled back out its interpreted as a string. Now this was fairly easy in the sdk, i would know as ive done it, the sdk has the functions for it etc, i would be suprised if you cant do it. Sorry.

Share This Page