Corrupted file using IRemoteFileService ... [message #989193] |
Wed, 05 December 2012 07:20 |
Boy D'Poy Messages: 67 Registered: October 2011 |
Member |
|
|
Hi!
I followed the example listed here : http://wiki.eclipse.org/Scout/HowTo/3.7/Use_RemoteFileService.
I have this configuration:
### Server RemoteFileService root path
org.eclipse.scout.rt.server.services.common.file.RemoteFileService#rootPath=/home/me/remotefiles/
*
In my source code, this portion works fine ...
String source = "pdfFile.pdf";
final RemoteFile result = SERVICES.getService(IRemoteFileService.class).getRemoteFile(new RemoteFile(source, 0L));
MyForm#this#AbstractBrowserField#setValue(result);
Except that the result file seems to be corrupted!
So, the used AbstractBrowserField renders for example, for this pdf file, the same number of pages as the source file on the scout server but the texts disappears ... even if the result file is flushed on another directory (i.e. not in the AbstractBrowserField).
What could be the reason?
Thank you!
Once You Go Scout, You Never Come Out!
|
|
|
|
|
|
Re: Corrupted file using IRemoteFileService ... [message #990086 is a reply to message #990072] |
Mon, 10 December 2012 19:44 |
Boy D'Poy Messages: 67 Registered: October 2011 |
Member |
|
|
the same problem happens on evrey kind of file (mp3, jpg, ....) except text files for wich the transfert is successful.
you're right saying that the this is new to Scout, in my opinion, the RemoteFileService only works right now for text files. (DecompressedReader/Writer should be enhanced to handle binary files I think)
Once You Go Scout, You Never Come Out!
[Updated on: Mon, 10 December 2012 19:48] Report message to a moderator
|
|
|
|
Re: Corrupted file using IRemoteFileService ... [message #990353 is a reply to message #990207] |
Wed, 12 December 2012 06:41 |
Boy D'Poy Messages: 67 Registered: October 2011 |
Member |
|
|
hello,
thank you for your answer, but your proposed solution requires to transform the resulting as your destination component (the MP3 players) uses an InputStream.
This doesn't macth well with my situation where I use an AbstractBrowser, which needs a (result) RemoteFile as parameter.
Once You Go Scout, You Never Come Out!
|
|
|
Powered by
FUDForum. Page generated in 0.04054 seconds