apmcintyre Newbie

Joined: 21 Jan 2005 Posts: 2
|
Posted: Fri Jan 21, 2005 10:36 am Post subject: Need help using DataStreamRetriever please! |
|
|
Hi,
Using Java 1.3 & OO 1.0.1
I'm using the DataStreamRetriever to access the Content Data Stream of a UCB Document Content (see http://ooo.ximian.com/lxr/source/api/odk/examples/DevelopersGuide/UCB/DataStreamRetriever.java#191).
The XInputStream comes back OK, but when I try to loadComponentFromURL using private:stream it doesn't work! I think it's something to do with PropertyValue below. I haven't much experience with this stuff!
Thanks.
****************************************************************************************************
XInputStream data = // use DataStreamRetriever...
PropertyValue aArgs[] = new PropertyValue[1];
aArgs[0] = new PropertyValue();
aArgs[0].Name = "InputStream";
aArgs[0].Handle = -1;
aArgs[0].Value = data;
XComponent aDoc = mxComponentLoader.loadComponentFromURL("private:stream", "_blank", 0, aArgs);
**************************************************************************************************** |
|