Hi, I’am writing now my thesis and want to use Axis
in my project. We want to develop a P2P-Filesharing system for promotional and
commercial use where any peer can exchange some files with another peers in a
trusted environment. We use in our project JXTA for filesharing. But in
addition to JXTA, we need some Services which we use to query, insert and
delete data in a database. I have now read the user guide and everything works
fine. I write a test service with the following steps.
Our problem now is that our clients sometimes must
register a new file for sharing. A peer must upload a file to the service and
on the service a method must calculate the Fingerprint. How can I upload a file
to a web service? I’ve see in informer postings that axis offers to use
attachments? But which size is allowed for attachments? Another idea from me was to create a Bean with a
byte[] getFile() and setFile(byte[] file) method where I can read on the client
side a file into a byte array and on the server side I extract the byte[].
Today I want to test the variation with the bean but my server has not enough
memory and throw java.lang.OutOfMemoryError: Java heap space.
Our first goal is to upload only audio files which is
normally not bigger than 4 - 10 MB. In future we plan to use upload bigger
files(video files). I don’t know if I’am on the right way.
Can anybody help me? Are there any simple code examples how to use Attachments
in Axis? Thanks for any help in advance. Ferruh Zamangör |