Home Help Center

Parameter Passing

kenparkkenpark Member Patrick SeiffertOrganization: University of Applied Science DarmstadtProject: Remoting Android's UI to external UIs
Hi.

Is there a way to pass parameter which have a binary format? The intent is to send pictures or (if possible) even multimedia format like audio and video stream. Do you see any chance to do so?
What would it take?

Regards,
Patrick

Comments

  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    You can use a sequence of char (or short, depending on the underlying data). If you look at the series of articles I started in issue 16 of our newsletter connections "IceGrid Sessions and Resource Allocation", you can see I used a sequence of short for the PCM WAV file data.

    You might also be interested in http://www.zeroc.com/newsletter/issue20.pdf, where I talk about optimizing the performance of file transfer.
  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    Correction: I meant to say byte above, not char. Slice does not have a char type :) bytes are guaranteed not to undergo any change in representation as they are transmitted between clients and servers. This make "byte" suitable to exchange pure binary data.
  • kenparkkenpark Member Patrick SeiffertOrganization: University of Applied Science DarmstadtProject: Remoting Android's UI to external UIs
    Thany you Matthew.

    This is a good hint. I will try to adopt the Mp3Encoder example to pass a Bitmap as a parameter to a servant on an other machine.
Sign In or Register to comment.