Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: markspace Newsgroups: comp.lang.java.programmer Subject: Re: Serializable java object to a string Date: Wed, 09 Oct 2013 23:27:30 -0700 Organization: A noiseless patient Spider Lines: 12 Message-ID: References: <80380e82-2493-479b-ab13-3fa8bd60aa6b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 10 Oct 2013 06:27:34 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="9185b88a2b5381a82810209530bb8295"; logging-data="6801"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19AiamprYPYvMCc+I0my6rN1eeIeNX6PYo=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <80380e82-2493-479b-ab13-3fa8bd60aa6b@googlegroups.com> Cancel-Lock: sha1:jQeDxymbgU0/3YG722B2spbMXDY= Xref: csiph.com comp.lang.java.programmer:26274 On 10/9/2013 8:09 PM, bob smith wrote: > What's the easiest way to convert a Serializable java object to a string? > > Maybe a hex string or base64? > > Thanks. > javax.xml.bind.DatatypeConverter contains both hex and base 64 conversion methods to help you out.