velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis <brede...@mac.com>
Subject Re: Velocity, Torque, BLOB's
Date Thu, 08 May 2003 15:26:31 GMT
Jeremy,

Sorry the method valueOf() takes an array of chars, not an array of 
bytes. I don't know how you can get this to work. Would you be able to 
put new String(description) in the context instead of the description 
itself?

Cheers,
-- Denis.

On Thursday, May 8, 2003, at 01:32  pm, Jeremy Cowgar wrote:

> On Thu, 8 May 2003 10:36:08 +0100, Denis <bredelet@mac.com> wrote:
>
>>> How can I make Velocity display a BLOB (in java, bytes[]) as a 
>>> string?
>>
>> Try:
>> #set (string = "")
>> $string.valueOf(bytes)
>
> Hum,
>
> That didn't quite work. I tried both $s.getDescription(), 
> $s.Description but it created the same thing:
>
> -- Output Screen (browser) --
>
> Sections
>
>    1: Hello [B@1687dcd
>    2: Section 2 [B@11b456f
>    3: Yes, another testing section [B@16b7e0e
>


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message