Archived
This forum has been archived. Please start a new discussion on GitHub.
How can I develop a File transfer application?question 2
xiehua
in Help Center
question 2,how can I break through The hard limit of 1MB in Ice as the maximum request size on file transfer?
marc tell me that:
one way is to set Ice.MessageSizeMax (in KB) to the desired maximum.
I lookup the pdf and try ,but I fail. I am sure that I can't know
how to set this due to my poor english.can you help me?
the thing I try is as follow:
I add follow 2 to my code
Ice::PropertiesPtr properties = Ice::createProperties(argc, argv);
properties->load("config")
and in the file "config",I add line " Ice. MessageSizeMax=10000"
and then I initialize my Communicator as follow:
Ice::CommunicatorPtr ic;
ic = Ice::initialize(argc, argv,properties);
but when I run the application,error report
"version mismatch"
I am so confused!
xiehua
marc tell me that:
one way is to set Ice.MessageSizeMax (in KB) to the desired maximum.
I lookup the pdf and try ,but I fail. I am sure that I can't know
how to set this due to my poor english.can you help me?
the thing I try is as follow:
I add follow 2 to my code
Ice::PropertiesPtr properties = Ice::createProperties(argc, argv);
properties->load("config")
and in the file "config",I add line " Ice. MessageSizeMax=10000"
and then I initialize my Communicator as follow:
Ice::CommunicatorPtr ic;
ic = Ice::initialize(argc, argv,properties);
but when I run the application,error report
"version mismatch"
I am so confused!
xiehua
0
