From: Kal A. <kal...@ne...> - 2006-06-14 08:04:01
|
Hi, You have two choices when making an occurrence. You can either have a = text occurrence stored inside the topic map using the setValue() method, = or you can instead store a URL locator that points to any kind of = resource (graphic, audio, video as well as external text files) using = the setResource() method. So in your case you should put the binary file somewhere where it can be = accessed (e.g on a webserver), and then store the link to that file as a = locator using setResource(). Hope this helps Kal > -----Original Message----- > From: tm4...@li... [mailto:tm4j-users- > bo...@li...] On Behalf Of ?? > Sent: 14 June 2006 04:35 > To: tm4...@li... > Subject: [TM4J-users] question about the occurrence type >=20 > Hello, > If I want to create the occurrence of a topic using TMAPI, should = the > type > only be text? What about any other media such as graph,audio,video and = so > on? If so, how can I do? > Thanks! > zhouting >=20 |