Home Help Center

How to upload a file through stream?

JiangyubaoJiangyubao Member Yubao JiangOrganization: www.gliet.edu.cnProject: integrate OSGi & Ice to provice service for PHP ✭✭
Now, I meet this problem.
I deploy a Ice server application, and develope a Java GUI client to communicate with it. Now I need to upload a file to remote server. So I define the following Slice file:
module mymodule{
	interface BundleService{
	    string upload(string jarFileName, ByteSeq bytes);
             };
};

It use byte array as parameter, but it is not suitable for large file. I try to use stream, but I can't find any demo on this subject.

Will anybody tell me how?

Thanks.

Comments

  • dwaynedwayne St. John's, NewfoundlandMember Dwayne BooneOrganization: ZeroC, Inc.Project: Internet Communications Engine
    You should take a look at Matthew's article on file transfer in issue 20 of the newsletter.
  • JiangyubaoJiangyubao Member Yubao JiangOrganization: www.gliet.edu.cnProject: integrate OSGi & Ice to provice service for PHP ✭✭
    Thanks for your reply.

    Now I know how to do: split large data to small segments, and upload them.
Sign In or Register to comment.