Rsync

Hi,I Devloping Rsync algo for java ,it work fine for text document but it fail for .doc file
[106 byte] By [Jignesh_Togadiyaa] at [2007-10-3 2:02:04]
# 1
> Hi,> I Devloping Rsync algo for java ,it work fine for> text document but it fail for .doc fileAnd! I bet you are treating the '.doc' file as text but if it is an MSWord document then it is not text.
sabre150a at 2007-7-14 19:00:48 > top of Java-index,Other Topics,Algorithms...
# 2
Hi have you any Idea about to devlope rsynch system using java and work for all type of files
Jignesh_Togadiyaa at 2007-7-14 19:00:48 > top of Java-index,Other Topics,Algorithms...
# 3
I don't see why the rsync algorithm shouldn't work right out of the box if you treat the file as a sequence of bytes.
DrClapa at 2007-7-14 19:00:48 > top of Java-index,Other Topics,Algorithms...
# 4

> Hi have you any Idea about to devlope rsynch system

> using java and work for all type of files

As DrClap says, the 'synch' algorithm should work regardless of the file type. The only way I can see it working on 'text' files and not on 'doc' files is if you have made the assumption that files contain characters and instead of working with bytes you have converted to characters.

sabre150a at 2007-7-14 19:00:48 > top of Java-index,Other Topics,Algorithms...
# 5
ya I have devloped and work with all type of files it is devloped using Socket programming , after that I convert it into Rmi and finally to CORBA
Jignesh_Togadiyaa at 2007-7-14 19:00:48 > top of Java-index,Other Topics,Algorithms...