Add to address book - add images

Hello

I am add contact to the address book. Info is well added, but adding a Photo to a Contact does not work. I am trying to add a static image to Contact. There are a few messages to fail in the console...

Debug: extractNewPhotos: the main photo file: "file://asset: / / / images/avatar.png" id: 0
Debug: [DEBUG] received a notification for unified, notification contact person: "contact_new."
Debug: [DEBUG] received contact ID: (QVariant (int, 14))
Debug: [DEBUG] sent contactNew signal to contact id: (14)
Debug: Successful Open:
Debug: Details of the Session "https://discoveryservice.blackberry.com/discoveryPoxmlServlet/", "3fb64670-0400-4485-8494-fdb44fb5d1c7" '1.0"'127.0.0.1' 8888
Debug: POST
Debug: Buffer URL: http://127.0.0.1:8888/contacts/4? company = 0

Debug: Make easy Curl - dab
Debug: [DEBUG] received a notification for unified, notification contact person: "contact_new."
Debug: [DEBUG] received contact ID: (QVariant (int, 15))
Debug: [DEBUG] sent contactNew signal to contact id: (15)
Debug: GetInfo Easy Curl response Code
Debug: Curl getInfo easy content_length_download
Debug: Curl error Code 0
Debug: Response Code 200
Debug: Form Data json=%7B%22filepath%22%3A%22asset%3A%2F%2F%2Fimages%2Favatar.png%22%7D
Debug: POST
Debug: URL buffer: http://127.0.0.1:8888 / contact/4/15/photos

Debug: Make easy Curl - dab
Debug: GetInfo Easy Curl response Code
Debug: Curl getInfo easy content_length_download
Debug: Curl error Code 0
Debug: Response Code 500
Debug: Status Code 500
Debugging: Exception string "an unexpected problem occurred with %s (account). Some features may not work properly. "% {"status": 500}"
Debug: called getContactDtails 15
Debug: GET
Debug: URL buffer: http://127.0.0.1:8888 / contact/4/15

Debug: Make easy Curl - dab
Debug: GetInfo Easy Curl response Code
Debug: Curl getInfo easy content_length_download
Debug: Curl error Code 0
Debug: Response Code 200

Code is:

ContactService* service = new ContactService(this);
    ContactBuilder builder;

   QVariantMap photoMap  = directoryMap.value("photos").toList()[0].toMap();
    if( photoMap.count()>0 ) {
            ContactPhoto photo = ContactPhotoBuilder()
                                .setOriginalPhoto("/images/avatar.png");
        builder.addPhoto(photo);
    }
    bb::pim::contacts::Contact createdContact = service->createContact(builder, false);
    if (createdContact.id()){
                   qDebug() << "--------addToNAB------"<<"DONE..!!";
}

EDIT: Same questions I'll have while adding the postal address. I guess that these features do not work immediately...

OK, I got a response from PBernhardt, to add the address.

"It's actually a documentation problem. You must define the genre of sup on the mailing address. It should be like .setSubKind (AttributeSubKind::Work) or home or other

 

Correction is: ContactPostalAddressBuilder (address) .setSubKind (AttributeSubKind::Work);

Tags: BlackBerry Developers

Similar Questions

  • How do I add e-mail addresses in address book in bulk?

    I received an email with a bunch of e-mails (a few cc, some). I want to copy all the addresses to the Clipboard, so I put in my address book list I created. Or I want to stick to a new empty email.

    Thank you!

    Right click on something that looks like an e-mail address should offer an option to add it to your address book. Allows you to deal with them one by one.

    Or download the add-on:

    https://NIC-NAC-project.org/~kaosmos/morecols-en.html

    and allows you to add all the correspondents of a message to your address book.

    For even broader scope,

    https://NIC-NAC-project.org/~kaosmos/index-en.html#EAC

    allows you to designate several messages to analyze email addresses, including in the text of the message.

    How to install modules in Thunderbird.

  • Add address of the sender to the address book using filtaquilla?

    When the sender is not in the address book, I want to give the user an option to add it. Is this possible with filtaquilla?

    There is a filter action, provided by FiltaQuilla, to "Add sender to the address list", and among all the proposed locations, your address books are included.

    But I see no way easy to offer the user a dialog to allow him to choose or not to do. Perhaps a javascript maven could do something here.

    Any sender can easily be added to the address book by clicking on its name/address in the header of the received message. Maybe you can use a filter just to highlight the messages from unknown senders in order to prompt the user to consider adding to their address book. Or you can create a saved search to collect such messages. Then, their mere presence in this saved search folder would indicate their status is unknown.

  • How can I add a contact in my address book?

    The address book is totally useless to me if I can't add people to it. There is currently no way to do and no place to go for instructions. Can someone please send comprehensible instructions on how to find and then open my personal address book or the address book and then collected it please tell me what's the difference between them? It is VERY non-intuitive.

    Open the address book window.
    You have a directory pane list down the left margin with your listed books?
    If this is not the case, the menu bar, select View-Layout-directory pane.

    In the directory pane, you can select the folder for one of your books.

    To add a contact press on the new Contact button and fill in the form.

    If you want to add a contact from an e-mail that you received, you need to work from the header of the Message or message open in a tab pane.
    When you view the header of a received message, there will be a star to the right of the address of the sender. If the star is filled with color the contact is already in one of your books. Clicking on a star not filled it will add to the personal address book
    By clicking on a color filled with stars will open the edit contact dialog box where you can add details to the contact or change the book it is saved in.
    This isn't the same star to the left of the subject line of message in the Inbox.

    The two default address books are staff and collected books.
    The personal book is for contacts you add and use it as the main book.
    The collected book collecting the addresses of people you send an email to.

    You can move contacts from one book to the other drag-and - drop contact.

    There is what is called the Contact side bar that sits in the window of writing. If yours does not appear when you open a window writing press F9 to switch on.
    From the sidebar of Contact you can add contacts to your e-mail.
    You can double-click a contact to add to an address field.
    You can drag and drop a contact to an address field.
    If you add more than one contact to an e-mail you hold down the CTRL key while clicking on all of the contacts you want and then use one to add it to: buttons at the bottom of the sidebar.

    You can also start a contact by typing in one of the address fields and Thunderbird will offer suggestions to your address books. This method has been a bit buggy in the latest versions so watch this closely to ensure that you get the contact that you thought that you have selected.

  • How can I add an address book other than the "personal address book"?

    My personal address book contains only the people associated with our homeowners association. I would like to create other books such as family, friends, golf groups, etc. I was not able to find a way to do this. It seems that the only options are the collected address book and the personal address book.

    2 address books you list are the default books for Thunderbird. You can add more if you wish.

    Open the address book window.
    In the Menu bar, select file-new-address book

  • How can I add a name to my address book?

    I can't find a way to add a new contact in my address book.

    My new add contact/list highlights not to allow me to add new contacts. This just happened a week or two ago. Why? What can I do to fix?
    I'm not sure that it is there that this issue is going; I'll look around support site to find a more suitable place.

  • How can I add an address to the address book?

    Adding people to the address book appears as a top-of-list thing for people to want to do, but I can't understand how do in the program, and I can't find the problem addressed in this site.

    When the club added a few members, or the company adds a few customers, how can I add them to the address book?

    http://en.flossmanuals.NET/Thunderbird/address-book-basics/

  • How to add an e-mail address of a message in an address book selected?

    I didn't need "Personal address book": I imported my e-mail addresses of my Eudora address books. As it is, it is quite cumbersome to add this address to the address book I want. In Eudora, it was easy

    Well, the function "copy E-mail address" is almost as good, with the message and the address book in windows separated. Most wanted help.

  • Thunderbird adds "and &lt; characters to my email addresses in my address book, and then failed to send them because they're unrecogniseable, how it stop?

    "If I click on a contact in contact payne of a window of Scripture, it happens in the To: put as < ' joeblogs"@talktalk.com > for example. Even if in the address book, it is [email protected]. When I try to send the e-mail, he returned as the address unrecogniseable and is not sent. If I remove the < "" > characters by hand, it works. What I am doing wrong? Help, please!

    It adds the <>because there is a space in the address which causes its nullity. For some reason that escapes me, it allows you to add faulty addresses for outgoing mail.

  • How to set up "Add sender to address book."

    Somehow, I lost all my contacts! How can I add the sender of an e-mail to my address book on a base with a single click. I think I tried all avenues without success. Did I miss something? Thank you

    When you view a message in a tab or message pane there is a star to the right of the sender. If the star is filled with color, they are already in one of your address books. By clicking on an empty star, he added to the address book. By clicking on the filled star opens the dialog edit contact to fill in more details.

  • Do I have to manually enter the addresses in my address book? I can't find a button for "add to address book." I looked everywhere.

    'opagj' ipjgpijerge

    There is a star to the right of the senders e-mail address when you view the message in a tab or the messages pane. If the star is filled with color the contact is already in one of your address books. If the star is empty, you can click the star to add to a book. By clicking on the star a second time will open the edit contact dialog box you can add more details.

    This isn't the same star that is to the left of the message header in the Inbox view.

  • How can I add the cc addresses and British Colombia on a list of address book?

    I try to add a distribution list to my address book. Some beneficiaries should be cc would be and some should be bc had. I don't see any option for this project.

    If you are referring to a mailing list, you will need to create separate lists - one for the CC recipients and the other on the CCC. In the entry window, press F9 to show the sidebar of Contacts, select a list, and then click Add to Cc or Bcc adds.

    You could also add a list using AddExpandedList and change the format of address for the selected contacts.

  • How to add an e-mail address to my address book from an e-mail?

    Someone sends me an email and I don't have their email in my Thunderbird addressbook. Is it possible to enter their information in my address book without having to retype all in my address book. In other e-mail programs I used, all I had to do was click on the message and click on a menu item drop-down which would be simply copy all the contact information in a new address book entry. Is it possible to do this in Thunderbird?

    When you view a message in a tab or the message pane there is a star to the right of the address of the sender. If the star is filled with color the address is already in one of your address books. If the star is not filled, click on the star to add. Click on the star a second time to open the Edit dialog box to add more details about the contact.

    This isn't the same star which is located to the left of the message header when you view the Inbox.

  • How to add addresses to my address book?

    I want to add in my address book email addresses, but I don't know how to do this. How can I do this?

    Wow. You really Firefox 3.0b5? She is old. You need to update Firefox by downloading the latest version of http://mozilla.org/firefox with the installation program.

    Firefox is not an address book - it's a Web browser. You need visit the support site for any e-mail application you use. If it is Mozilla Thunderbird, please visit http://support.mozillamessaging.com/

  • Skype adds the mac address book contacts, these people will be notified?

    OK, so I downloaded Skype, very well.
    Skype automatically adds everyone in my mac address book (which I haven't checked over the years, is full of people I don't like and don't talk to!)
    My question is, because Skype has added these contacts in my address book, these people will be notified somehow?

    (Find it me * very * irritating I was not asked or encouraged that my address book stupid personal from my computer to add to Skype) n):

    They won't be notified somehow. All Skype does is to read your address book and, if you do not want it to do this, go to Skype\Preferences\General and a tick 'view the contacts address book '.

    A little research in the preferences helps a lot! ;-)

Maybe you are looking for

  • Safari crashed, continues to crash on opening

    I received an email from a person whose name and surname was identical to names and unusual names of my daughter. It was sent from a different email address, which I did not notice, initially. The message greeted me by my first name, offered a link t

  • Differences between Satellite 5100-201 & 5100 603

    Hello The user guide is not clarify the differences between the models S5100-201 and S5100-603.I can work on them are different speeds, memory and hard drive, but what about the internal bits? I have a model 603 broke with a power control fault. Does

  • convert the time format

    I am writing a Labview application in which I read the date data to a file that is located on this format: April 11, 2010 I want to convert this format to another like this 11/04/2010. I use the 'Analysis of the string' function, but I couldn't make

  • Library of 3D vision machine (3dmvl)

    Greetings. I was wondering if there is more information available on the library of 3d vision machine for LV? Link: 3dmvl for Labview. When will it be available? This will be an add-on free for Vision or a stand-alone library module pay? Thank you an

  • How can I reference the properties of a control in a cluster in an array of clusters?

    Hello I am a newbie of Labview, so any advice is welcome on any code posted here. I have one "tick" test VI where the operator is required to boxes that are then "signed". Once all the boxes are signed correctly, the operator indicates that they are