Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: where is a webdav resource stored

Re: where is a webdav resource stored

From: Dimitri Kleyn <dem_at_deminator.de>
Date: Fri, 29 Aug 2003 13:34:29 +0200
Message-ID: <bindo8$b752g$1@ID-85779.news.uni-berlin.de>


Thank You!!

i do it by this way: (java source)

  OracleResultSet rset =
   (OracleResultSet)stmt.executeQuery(
"SELECT sys.UriFactory.getUri('/home/SCOTT/file.pdf').getClob() as CLOB FROM dual");

  if(rset.next()) {
   CLOB clob=rset.getCLOB("clob");
   java.io.InputStream in=clob.binaryStreamValue();

   byte[] buf=new byte[1024];

   int len;
   while ((len = in.read(buf)) != -1) {

           System.out.write(buf, 0, len);
         }

-- 
Dimitri Kleyn <dem_at_deminator.de>

"Jusung Yang" <JusungYang_at_yahoo.com> schrieb im Newsbeitrag
news:130ba93a.0308281053.141bb2b9_at_posting.google.com...

> Well, once you have the path(or URI) to the resource (as shown in
> path_view or resource_view), you can view the content with xdburitype.
> Do a desc xdburitype from SQL*PLUS to see all methods within
> xdburitype. Look into the "getcolb" method. This would work regardless
> of whether the documnet is in XML format or not.
Received on Fri Aug 29 2003 - 06:34:29 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US