Thanks the base64 combined with URLEncoder should work great.
-David

> -----Original Message-----
> From: Michael Jouravlev [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 22, 2005 1:36 PM
> To: Struts Users Mailing List
> Subject: Re: How to encode byte array as url parameter
> 
> Base64 will not work, because its charset includes + and / ASCII
> characters. So you might write something like strToHex() (or whatever
> its name is), for example see Cryptix library, Hex utility class. Or
> you can just use that class directly.
> 
> On the other hand, you may use Base64, and then URLEncoder.encode().
> 
> Michael.
> 
> On 6/22/05, David Erickson <[EMAIL PROTECTED]> wrote:
> > Hi I am wondering how I can take a byte[] and use it as a URL parameter?
> I
> > have tried converting it to a string using varying character sets, but
> when
> > I call string.getbytes I never get back my original array.  Any help
> would
> > be greatly appreciated.
> >
> > Thanks
> > David
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to