RE: [Javaserver-java] javaserver with binary data
Brought to you by:
zzo
From: Matt G. <Mat...@tw...> - 2004-06-13 22:38:56
|
Mark, My Java objects are zipped together in a zip file. I use perl to iterate through the entries. For each entry I have an $entry->contents that I want to pass to the Java side. My original workaround was to write the contents out to /tmp. That doesn't work when I'm not on the same machine as the Java server.=20 I could uuencode the contents and pas them over, but then I would have to write more Java code than I want to. All I really want to do is: my $bis =3D $java->create_object("java.io.ByteArrayInputStream", $entry->contents); my $str =3D $java->create_object("java.io.ObjectInputStream", $bis)->readObject->toString(); Matt Matt Greenwood Two Sigma Investments, LLC 379 W. Broadway, 5th Floor New York, NY 10012 =20 (P)212-625-5764 (F)212-625-5864 (M)908-380-1673 > -----Original Message----- > From: ma...@zz... [mailto:ma...@zz...] > Sent: Friday, June 11, 2004 3:46 PM > To: Matt Greenwood > Cc: jav...@li... > Subject: Re: [Javaserver-java] javaserver with binary data >=20 >=20 > > > I have never tried passing binary data but I am sure the protocol > > > would > > > get in the way - you could uuencode the data & then send that over - & > > > just > > > have the Java stuff uudecode it & be back in business. > > > > Yes, but I just want to do an object decode. > > >=20 > I don't know what you mean here. You want de-serialize java objects > right? > Why not just have the Java side do it? > Mark |