aspose file tools*
The moose likes Struts and the fly likes Document management System Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Document management System" Watch "Document management System" New topic
Author

Document management System

sandeep lokhande
Ranch Hand

Joined: Jan 25, 2010
Posts: 118

Hello i am sandeep,
I want to build a document management system like tortoise SVN,
but i want to commit and update by email-integration,
Please suggest me to avoid overhead of sending whole document.
Instead i want to send to server, only the modified data.
Thank you in advance.


Thanks and Regards,
Sandeep Lokhande.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

That's a non-trivial undertaking, particularly for binary documents--in my opinion it's not worth the effort. Send the entire document.

If it's in a non-binary format, just send the patch.
sandeep lokhande
Ranch Hand

Joined: Jan 25, 2010
Posts: 118

I am facing creating design such that it will identify patch modified and then saves the changes<managing versioning>,
but while sending mails i should use minimum bandwidth.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Then if it's a binary file you'll need to do a binary diff, otherwise use any of the available diff libraries (or just use diff).
sandeep lokhande
Ranch Hand

Joined: Jan 25, 2010
Posts: 118

At first i want to implement this for simple text file .doc etc.
Can you please tell me any example of any diff libraries or Tutorial that can help me to find out the differences in the document.
Thank you in advance.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

A .doc file isn't a text file, in general.

I'd just search for "java +diff" first, if you don't just have a diff executable available on your system.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Document management System