I want to extract an imported jpeg image from a note using the C++ API (3.0).The following code snippet is able to obtain composite data records (from which I can get the image) when image is less than 64k, but won’t work for larger images.
LNGraphic lnGraphic;
…
LNCompositeDataArray lnCDRecords;
LNSTATUS error = lnGraphic.GetCDRecords(&lnCDRecords);
//if image > 64k returns error code “Invalid parameter passed to function”
//if image < 64k works fine.
Looking at the note with NotePeek, I can see that in the failure cases, there are several rich text items with the same name (which the C++ API seems to treat as only one item.)
Can anyone help me? Or give me some clues on a possible work around using the C API.