How to attach image to email

How to attach image to email

BY 22 Jul 2013 Native Application Development

Hi.

I need to attach an image to email. I use code below for it:

    HashMap map;
    r = map.Construct(2);

    String subjectKey = L"http://tizen.org/appcontrol/data/subject";
    String subjectValue = txt_imageText->GetText();

    String attachKey = L"http://tizen.org/appcontrol/data/path";
    LinkedList attaches;
    attaches.Add(&filepath);

    map.Add(&subjectKey, &subjectValue);
    map.Add(&attachKey, &attaches);

    AppControl* ac = AppManager::FindAppControlN(L"tizen.email",
            L"http://tizen.org/appcontrol/operation/compose");

filepath is full path to my image file: /opt/apps/-appId-/shared/res/image.jpg . But when email client had appeared he hadn’t image in attaches. My question is, which folder should I use to save my image if I want to put it in email.

Written by