Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can we pass large amount of data to object implementation

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Hello,
I'm working on a project, which requires that the client should be able to send a few Mega bytes of data to the object implementation how do I achieve this? If you can, will you please reply with some sample code? Thanks is advance,
LearningCORBA
 
here is the pseudo code:

ro=Corba object;
RemoteIterator ri=ro.getDataIterator(); //ri is a Corba object that contains a remote
//method. Each call to the remote //method returns
//a portion of the huge data.
//assume portion_of_data is byte[]. Convert other Object types to byte[] on
//server before transmitting

while(ri.hasMore){
portion_of_data=ri.getGetNextPortion();
concatWithEarlierPortions(portion_of_data);
}

With this pseudo-code, you will return a portion of the data with getNextPortion
and incrementally transmit a huge data over the network.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top