Hi.

Thanks for continuing to look into this. I'm sure we're going to solve this 
problem.

When the SJ client sends a file, the file is sent via soap, as an http 
attachment, in it's binary
form. The file is not encoded when it is sent. If you want to look at the code 
that sends the
file, you can look at the UploaderProxy class in org.sourcejammer.client

When the server recieves a text file, yes, all encoding should be done with the 
TextLineReader
class. 

You mentioned in your previous email that you did not set the encoding for your 
client. The client
must also do encoding when it recieves files, so you should set your 
client-side encoding as well.

Here are a few tips to help you debug. 

1) When a file is first uploaded to the server (before any encoding is done) 
the file is
temporarily stored in the _temp directory in your server's WEB-INF/conf 
directory. After you add
or check in a file, you can look for the file here and see if it has been 
altered by the process
of being sent from client to server.

2) After the server encodes the file and adds it to your archive, the file is 
stored in plain text
in the source directory under your archives/[archive name] directory. You can 
also look at the
file here to see if it is being stored properly on the server. For an 
explanation of how to find
files stored in your [archive name] directory, read this doc:
http://www.sourcejammer.org/docAboutServerFiles.html

Good luck. Please let me know if you have any more questions.

Thanks.

--Rob

--- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> Robert MacGrogan,Hello£¡
> 
>    To solve this problem, first I want to ask you two question:       
>       1. when client send a file, is there any different between
> binary file and text file, at this moment I just try to modify
> the server. if binary and text are different, may be the problem
> is the client.
>     2. when server receive a text file, does all encoding are done
> in TextLineReader?
> 
>       If I can make these clear, it will help!
>                
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Swin
> [EMAIL PROTECTED]
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2005-01-06
> 
> 



                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
SourceJammer-users mailing list
SourceJammer-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sourcejammer-users

Reply via email to