transfering images: maximum marshaling size?

Sai-Lai Lo S.Lo@orl.co.uk
26 Feb 1998 10:05:31 +0000


Val Gough <val@nilenet.com> writes:

> But, changing to an image of size 1500 x 1500 x 8bpp, I get an exception
> IDL:omg.org/CORBA/MARSHAL   (it's a CORBA::SystemException).  I'm not
> sure where exactly this is being thrown...  Is there a maximum size for
> OmniORB marshaled objects, and where can I find information about this?
> 

There is a (somewhat arbitrary) limit on the maximum message size that
omniORB2 will send or receive. The default is 2Mbytes. This limit is to
protect the ORB against rogue IIOP packets.

The limit can be changed using 'void omniORB::MaxMessageSize(size_t)'. Its
current value is returned by 'size_t omniORB::MaxMessageSize()'. These
functions are all documented in the user guide.

By the way, you will get maximum marshalling efficency if you transfer your
data as sequence of octets or other primitive types.

Regards,

Sai-Lai

-- 
Dr. Sai-Lai Lo                          |       Research Scientist
                                        |
E-mail:         S.Lo@orl.co.uk          |       Olivetti & Oracle Research Lab
                                        |       24a Trumpington Street
Tel:            +44 223 343000          |       Cambridge CB2 1QA
Fax:            +44 223 313542          |       ENGLAND