Re: Slide server Api sample
"chengj" <[email protected]>
| Newsgroups | gmane.comp.jakarta.slide.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks! Do you have more samples for "save file" OR "set privilege" .... chengj 2006/8/28 ----- Original Message ----- From: "Rakesh Saha" <[email protected]> To: "Slide Users Mailing List" <[email protected]> Sent: Monday, August 28, 2006 2:54 AM Subject: Re: Slide server Api sample > Sample API to read file : > > NodeRevisionDescriptors revisionDescriptors = > content.retrieve(slideToken, <file resourcePath>); > > if (revisionDescriptors.hasRevisions()) { > > // Retrieve latest revision descriptor > NodeRevisionDescriptor revisionDescriptor = > content.retrieve(slideToken, revisionDescriptors); > > if (revisionDescriptor != null) { > InputStream slideStream = null; > slideStream = content.retrieve(slideToken, revisionDescriptors, > revisionDescriptor).streamContent(); > } > } > > HTH. > > Thanks, > Rakesh > > chengj wrote: >> >> >> Hi all, >> I want to use SLIDE to store files. By the Architecture of >> SLIDE I think I only need to invoke Server API of SLIDE, and don't >> need to use WebDAV Servlet. >> who can show me a sample of using Server API of SLIDE. >> Thanks a lot. >> >> >> >> chengj >> 2006/8/25 >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >