Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-26-2005
mwilson mwilson is offline
Registered User
 
Name: Mark Wilson
Organization: University of Rochester
Project: Omega EP laser
 
Join Date: Jul 2005
Location: Rochester, NY
Posts: 73
Large chunks of data

Hi,

I am working on a video service which will transfer image data (>1 MegaPixel) as a return type. I plan to define this as:

interface IMAQ
...

sequence<byte> acquire();

....


Is this the proper way to do this?

Thanks,
Mark
__________________
Mark E. Wilson
Lead Programmer/Analyst
Omega EP Project
Laboratory for Laser Energetics (www.lle.rochester.edu)
University of Rochester
Rochester, NY 14623
Reply With Quote
  #2 (permalink)  
Old 07-26-2005
jaggu jaggu is offline
Registered User
 
Name: Todd M
Organization: Inc
Project: Testing
 
Join Date: Jul 2005
Posts: 11
think so as byte is fastest you can get as is uninterpretted.
Reply With Quote
  #3 (permalink)  
Old 07-26-2005
mwilson mwilson is offline
Registered User
 
Name: Mark Wilson
Organization: University of Rochester
Project: Omega EP laser
 
Join Date: Jul 2005
Location: Rochester, NY
Posts: 73
Large chunks of data

I looked at the "similar threads", and ZeroC indicates that sending data in such big chunks is not efficient.

So, now I'm thinking of defining:

interface IMAQTransferHandler {
imageStart(ImageID);
imageEnd(ImageID);
imageData(ImageID, ByteSeq);
};

And my image acquisition interface becomes:

interface IMAQ {
...
ImageID acquire(IMAQTransferHandler*);
...
};

Opinions are welcome!

Mark
__________________
Mark E. Wilson
Lead Programmer/Analyst
Omega EP Project
Laboratory for Laser Energetics (www.lle.rochester.edu)
University of Rochester
Rochester, NY 14623
Reply With Quote
  #4 (permalink)  
Old 07-26-2005
michi's Avatar
michi michi is offline
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 912
If you have sufficient memory to buffer the entire image, you can send it in a single RPC. (You'll have to adjust the value of the Ice.MessageSizeMax property to allow requests larger than a megabyte.) More likely though, you'll have to split the data into chunks and retrieve the chunks. I suggest you have a look at the source for IcePatch2. It does a similar job and should provide some ideas.

Cheers,

Michi.
Reply With Quote
  #5 (permalink)  
Old 07-27-2005
mwilson mwilson is offline
Registered User
 
Name: Mark Wilson
Organization: University of Rochester
Project: Omega EP laser
 
Join Date: Jul 2005
Location: Rochester, NY
Posts: 73
Makes sense - let the client do the work. Nice and simple.
__________________
Mark E. Wilson
Lead Programmer/Analyst
Omega EP Project
Laboratory for Laser Energetics (www.lle.rochester.edu)
University of Rochester
Rochester, NY 14623
Reply With Quote
  #6 (permalink)  
Old 09-12-2005
topgun300 topgun300 is offline
Registered User
 
 
Join Date: Sep 2005
Posts: 1
Ice.MessageSizeMax

I changed my Ice.MessageSizeMax to something really big, and now I can transfer really big images as parameters. Is there any disadvantage in doing this?
Reply With Quote
  #7 (permalink)  
Old 09-12-2005
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Quote:
Originally Posted by topgun300
I changed my Ice.MessageSizeMax to something really big, and now I can transfer really big images as parameters. Is there any disadvantage in doing this?
Please see this post regarding our new support policy for these forums:

Important note: Change in support policy
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IcePy, large sequences huberthoegl Help Center 6 01-11-2006 05:19 AM
Use ICE to send large files(C++)? thelONE Help Center 6 10-15-2005 09:18 PM
Question about sending large data. JaneShang Help Center 3 10-14-2005 01:25 PM
IcePack.Registry.Data and IcePack.Node.Data directories vsonnathi Comments 0 10-21-2004 06:12 PM
Transferring files/large data blocks deepone Help Center 3 04-29-2004 08:53 AM


All times are GMT -4. The time now is 10:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.