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 09:36:08 GMT
Hi Jeremy

On Thursday, May 8, 2003, at 04:07  am, Jeremy Cowgar wrote:

> Greetings.
>
> I have just discovered this great product via the Jetspeed system. I 
> am, however, running into a small problem that I am hoping someone can 
> help me with.
>
> I have a Torque object that stores text as a BLOB (the only way for 
> LONGTEXT or TEXT or text over 255 chars, right?). When I retrieve this 
> via my Velocity template, it displays as: [B@4c689e ... or some 
> variant.
>
> How can I make Velocity display a BLOB (in java, bytes[]) as a string?

Try:
#set (string = "")
$string.valueOf(bytes)

Cheers,
-- Denis.

>
> Thanks,
>
> Jeremy
>


---------------------------------------------------------------------
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