This content has been marked as final. Show 6 replies
We introduced support for attachment(fetch and store) in the java calendar sdk version 10G. The feature is only supported against 10G calendar servers or more recent than 10G.
The 10G Application guide will give you all the necessary documentation to accomplish your task.
Here is the link to dowload the Calendar Application Developer's Guide. http://download-west.oracle.com/docs/cd/B25553_01/calendar.1012/b25489.pdf.
From the Guide:
"The current version of the Calendar SDK doesn't fully support the ATTACH property
as stated in RFC 2045. Only file URIs are supported. The SDK must be configured to
support the ATTACH property. This involves setting tmpDirectoryPath in the SDK
section of the Oracle Calendar SDK configuration file. See Chapter 7, "Oracle Calendar
SDK Configuration Settings" for more information about this setting. Temporary file
attachments will be saved in the directory specified in tmpDirectoryPath when an
event is exported.
When an event is imported or stored, the ATTACH property value is file location of
the attachment. The following is an example of the ATTACH property of an event to
When an event is exported or fetched, if the configuration setting tmpDirectoryPath
points to a valid directory, any attachments will be downloaded in subdirectories of
this directory. These subdirectories will be in the following format:
If tmpDirectoryPath does not point to a valid directory, attachments will not be
The following is an example of the ATTACH property of a fetched event:
what about attachments made through OCFO, Web or Desktop client, are they URI attachement or not ?
I've to extract/remove the attachment from the calendar server and send them by email and archive them elsewhere.
Is possible to read them ?
Is is possible to remove the attachment from the event ?
if not, which version of CSDK should be able to do it ? (eta ?)
what about attachments made through OCFO, Web orYou can retrieve those. Although OCFO had to do some magic to store mutiple attachments in one file, so you might have to write some extra logic to retrieve OCFO type attachments.
Desktop client, are they URI attachement or not ?
I've to extract/remove the attachment from theYes
calendar server and send them by email and archive
Is possible to read them ?
Is is possible to remove the attachment from theYes
AS I am new to Csdk, Is there an example somewhere showing how it canbe done ?
in the supplemental DVD ?
AS I am new to Csdk, Is there an example somewhereThere are no examples directly targeted to attachments but there are examples on how to store/fetch events in $ORACLE_HOME/ocal/demo/sdk/java/CSDKCalendar.java.
showing how it canbe done ?
You can also read the javadoc of the Session.storeEvents function.
Is is possible to remove the attachment from theThis is quite easy, fetch the event, then store the event without the attachment and with flag CSDK_FLAG_STORE_REPLACE.