×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    28

    Question Get original image/path contact's thumbnail in Symbian^3

    Hello!

    To get the path original image that is set to contact, I use field EPbkFieldIdCodImageID;

    It's work fine, but in symbian^3 (E7, X7 devices etc.) user can set the image as follows:
    Menu -> Photos -> Select any photo -- and go to Options -- -> Use image - > Assign to contact,
    and choose a square image area...

    then the system automatically creates thumbnail and saves it to contact, and replace at the same time information about path to the picture ...

    For example:
    Original path: e:\images\camera\201112\201112a0\29122011004.jpg
    New path: e:\system\data\images\29122011004_1.jpg (new image size 290*290px)

    When the picture is set in the menu of contact this problem does not arise.

    Question:
    Does the information about the original image, then?
    If so, how to get it ...?


    Thanks!

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,142

    Re: Get original image/path contact's thumbnail in Symbian^3

    Not really understanding the question, anyway have you checked: http://www.developer.nokia.com/Commu...d,_FP2_devices , thus if the path is set then you could access the image directly..

  3. #3
    Registered User
    Join Date
    May 2011
    Posts
    28

    Re: Get original image/path contact's thumbnail in Symbian^3

    I have no problem accessing the original image ...
    My code work fine:
    Code:
    	TBuf<256> imagePath;
    	TContactItemId aId = -1;
    	aId = GetIdByMobileNumberL(aPhoneNumber);
    	CPbkContactItem* contact = iContactEngine->ReadContactLC(aId);
    	
    	TPbkContactItemField* info = contact->FindField(EPbkFieldIdCodImageID);
    	
    	if (!info)
    	{
    		return NULL;
    	}
    	if (KStorageTypeText == info->StorageType())
    	{
    		CContactTextField* textstore = info->TextStorage();
    		imagePath.Copy(textstore->Text());
    	}
    I am saying is if a user assigns image to contact as I described in my previous message ...

    Menu -> Photos -> Select any photo -- and go to Options -- -> Use image - > Assign to contact,
    and choose a square image area..
    In field EPbkFieldIdCodImageID (TPbkContactItemField* info = contact->FindField(EPbkFieldIdCodImageID))
    will be no information about the original image
    e:\images\camera\201112\201112a0\29122011004.jpg
    It will be contain the path of the image which is created automatically ...
    e:\system\data\images\29122011004_1.jpg

    I do not need to remove or replace it with another image ....
    I just need to use the original (not clipping) picture ...

  4. #4
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,142

    Re: Get original image/path contact's thumbnail in Symbian^3

    I'm basically assuming that it is not necessary to set the original image information, and thus if you have observed that the method is not doing it, then you could just assume that it is a feature of that application. And if it is not saving this additional information, then you simply can not get it.

    And thus you need to prepare your own logic in a way that it takes account the fact that not all information are available in all cases

Similar Threads

  1. Symbian^3 - Default image thumbnail path
    By sandundasa in forum Symbian C++
    Replies: 3
    Last Post: 2011-12-16, 08:14
  2. How to get path of thumbnail attched to contact.
    By shrawan_gupta in forum Symbian C++
    Replies: 3
    Last Post: 2011-01-06, 14:55
  3. Replies: 3
    Last Post: 2008-10-31, 10:28
  4. Image to thumbnail
    By pramod_salt in forum Symbian C++
    Replies: 1
    Last Post: 2008-05-01, 10:48
  5. Display Contact's Image
    By creativesoumik in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-03-04, 13:24

Posting Permissions

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