| View previous topic :: View next topic |
| Author |
Message |
peter_saint General User

Joined: 14 Jun 2006 Posts: 12 Location: Bulgaria
|
Posted: Thu Oct 12, 2006 3:27 am Post subject: loading/saving remote documents |
|
|
Hello,
It seems I'm having some problems while loading files to OO server from a remote client.
The situation is that I have a machine [A] that runs the OO server, listening at some ip:port and I want my client machine [B] to connect to the OO server, pass a document for loading and storing.
e.g.
| Code: |
rComponent = rComponentLoader->loadComponentFromURL(
"file://machineB/sharedFolder/file.xls",
OUString::createFromAscii("_blank" ),
... );
|
Problem is that I sometimes I get "URL seems to be an unsupported one." exception, even though the share path is ok !
What could be the cause of this ? Is it possible that OO does not support loading files from shared path like file://computername/folder/file ? |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
Olly600 General User

Joined: 09 Oct 2006 Posts: 14
|
Posted: Thu Oct 12, 2006 6:50 am Post subject: |
|
|
| I have to use something like "file:/// " to get my files to load. Check your URL loads normally on your pc and then it should load from a remote machine with no problems. |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
peter_saint General User

Joined: 14 Jun 2006 Posts: 12 Location: Bulgaria
|
Posted: Thu Oct 12, 2006 12:34 pm Post subject: |
|
|
thanks for the links SergeM !
| Olly600 wrote: | | I have to use something like "file:/// " to get my files to load. Check your URL loads normally on your pc and then it should load from a remote machine with no problems. |
seems like it wouldn't work at all if I use file:/// !
strange thing is that I couldn't figure when does this exception exactly occur, on some client-server environments I've tested, it does work as it is !
I havent tested it yet, but I am wondering would I achieve anything if I use the XSimpleFileAccess services, e.g.
| Code: |
Reference <XInputStream > rInputFileStream ...
propsLoading[0].Name = OUString::createFromAscii("InputStream");
propsLoading[0].Value <<= rInputFileStream;
rComponent = rComponentLoader->loadComponentFromURL(
OUString::createFromAscii("private:stream" ),
OUString::createFromAscii("_blank" ),
0,
propsLoading );
|
I guess, nothing really changes in this case, am I correct !? |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
|