Jump to content

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.

Photo

Cannot create note with image attached

help bug

  • Please log in to reply
1 reply to this topic

#1 JeanR

JeanR

  • Pip
  • Title: Member
  • Group: Members
  • 2 posts

Posted 16 June 2012 - 02:01 AM

I was able to create a new note from my Android App and have it successfully uploaded to Evernote by calling

intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM , uriList);

where uriList is the list of image uri's (from Gallery) and intent is the Evernote Android app Intent.

However, this stopped working few days ago and now if the new note has image attached, the note does not get created.
Is this a known bug?

#2 Rambus

Rambus

  • Pip
  • Title: Member
  • Group: Members
  • 21 posts

Posted 17 June 2012 - 03:38 PM

In the SDK I'm using you have to manually attach the image, i.e. turn it into a char * and compute a hash.

But assuming you are attatching it correctly... add the following code to your ENML to display the image:

"<en-media type=\""+mime_type_string+"\" hash=\""+std::string(hashMd5.toHex().data())+"\"/>";
Where hashMD5 is your images MD5 hash. mime_type_string is something like "image/png"

For more information look here: http://dev.evernote....notes.php#image





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Clip to Evernote