Open mateuscfonseca opened 9 years ago
I just noticed that when I set the attachment property of ResourceAttributes object to true instead of false, I could load the note. But on the documentation says that in order to the attachment appears inline the note I have to set that property to false.
Do you mind updating to the new version 2.0.0 and try again? Please take a look at the demo, which shows how to attach images to a note.
I already created various notes with the SDK . But when I try to attach a file I encountered some errors. I created a Resource with the mime type and set the Data property with a Data object with the body and body hash.I also added a Resource Attribute with the file name and setting the "attachment" property to false. I also appended the en-media tag on the note content.
On the sandbox site I can view the note, the photo even appears as a thumbnail on the list of notes. But the photo do not appears when I select the note from the note list on the site.
And when a try to load this specific note I always get some error, usually the TTransportException. Also get a SSL related error. And just once the note loaded and I could parsed the photo attached e check the ENML and it was alright.
If I create a note on the sandbox site, with the same photo, will load normaly.
Sorry for the english