This content has been marked as final. Show 2 replies
Commenting out these lines and using the code above will insert the contact in the calendar server:
s += "Content-Type: text/x-vard; charset=UTF-8\n";
s += "Content-Disposition: attachment; filename=\"\"\n";
s += "Content-Transfer-Encoding: QUOTED-PRINTABLE\n\n";
This contact appers in the desktop client but when trying to retrieve the contact using
fetchContactsByQuery retunes null;
Does anyone get the same behavior... Can anyone share the vCard used to create contacts.
The CAPI_STAT_LIBRARY_INTERNAL_COSMICRAY is not very helpfull for the end user, I will log a bug to have that error message, removed from the list of errors and have a meaningfull error retruned instead.
For the issue with problems querying the contact, here is how you can have it working.
Here is the output from a demo program, available in the 10G sdk package called CSDKCalendar.java.
Enter VCARD property name
Enter Case Sensitive true or false
Currently the supported types for the queries are N, FN, BDAY, TITLE, ROLE, NOTE, CATEGORIES, NICKNAME, X-ORACLE-SPOUSE, X-ORACLE-ANNIVERSARY, X-ORACLE-OFFICE, and X-ORACLE-ASSISTANTNAME."