Results 1 to 3 of 3

Thread: How to upload a file through stream?

  1. #1
    Jiangyubao is offline Registered User
    Name: Yubao Jiang
    Organization: www.gliet.edu.cn
    Project: integrate OSGi & Ice to provice service for PHP
    Join Date
    Oct 2007
    Location
    Beijing China
    Posts
    62

    How to upload a file through stream?

    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:
    Code:
    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.

  2. #2
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    You should take a look at Matthew's article on file transfer in issue 20 of the newsletter.

  3. #3
    Jiangyubao is offline Registered User
    Name: Yubao Jiang
    Organization: www.gliet.edu.cn
    Project: integrate OSGi & Ice to provice service for PHP
    Join Date
    Oct 2007
    Location
    Beijing China
    Posts
    62
    Thanks for your reply.

    Now I know how to do: split large data to small segments, and upload them.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. IceGrid node: does not stream all traces to file?
    By n2503v in forum Help Center
    Replies: 1
    Last Post: 04-08-2011, 12:09 PM
  2. Replies: 6
    Last Post: 08-03-2009, 05:29 AM
  3. How do I use Ice to process stream
    By hyz1840 in forum Help Center
    Replies: 3
    Last Post: 05-25-2006, 07:19 AM
  4. Stream helper functions and C++ templates
    By copton in forum Help Center
    Replies: 7
    Last Post: 01-20-2006, 02:37 PM
  5. single stream for two-way communication?
    By vukicevic in forum Help Center
    Replies: 2
    Last Post: 05-19-2003, 03:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •