Article View: borland.public.jbuilder.java.language
Article #15770URGENT ! converting double array into byte array
From: RiCK
Date: Wed, 28 Apr 1999 00:00
Date: Wed, 28 Apr 1999 00:00
22 lines
1063 bytes
1063 bytes
Hello,
I want to send a double array (double data[]) using UDP protocol.
I'm currently using datagrams object like this :
sendPacket = new DatagramPacket(
myDatas,
myDatasLength,
clientAdress,
clientPort
);
socket.send( sendPacket );
But the problem is : How do I convert my double array into a byte array,
in order to create the Datagram packet ?
Is there another way to do the (ie: sending directly the double array)
?
Thanks a lot for any help.
Pierric
Technical Details
Message-ID:
<37273B8E.D6074926@polymtl.ca>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,27c7dd27e6c5812c,start X-Google-Attributes: gidf74b3,public From: RiCK <pierric.permezel@polymtl.ca> Subject: URGENT ! converting double array into byte array Date: 1999/04/28 Message-ID: <37273B8E.D6074926@polymtl.ca> X-Deja-AN: 471940699 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language