oops I sent the wrong code, but I reckon you mean that
I should be using a reference to a directory not a
file no?
--- Kent Gibson <[EMAIL PROTECTED]> wrote:
> do you mind elaborating on this?
>
> this is basically what I am doing:
>
> However the Unpacked parameter just seems to be
> ignored.
>
> ByteArrayOutputStream byteOut = new
> ByteArrayOutputStream( 10000 );
> OutputStreamToXOutputStreamAdapter unoOut = new
> OutputStreamToXOutputStreamAdapter( byteOut );
>
> PropertyValue[] storeArgs = { new PropertyValue(
> "OutputStream", //$NON-NLS-1$
>
>
> -1, unoOut, PropertyState.DIRECT_VALUE ) };
> connection.getDocument()
> .storeToURL( "private:stream",
> storeArgs ); //$NON-NLS-1$
>
> // Wrap filled byte array into UNO input stream and
> load new document from it
> ByteArrayInputStream unoIn = new
> ByteArrayInputStream(
> byteOut.toByteArray() );
> PropertyValue[] loadArgs =
> OpenOfficeCoreUtils.addPropertyValue( args,
>
>
> new PropertyValue( "InputStream",
> //$NON-NLS-1$
>
>
> -1, unoIn,
>
>
>
> PropertyState.DIRECT_VALUE ) );
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]