logo       

Re: dynamic pictures in RTF: msg#00204

jakarta.velocity.user

Subject: Re: dynamic pictures in RTF

ok, thank you! I will give it a try!!!

----- Original Message -----
From: "Anakreon Mejdi" <amejdi@xxxxxxxxxxxx>
To: "Velocity Users List" <velocity-user@xxxxxxxxxxxxxxxxxx>
Sent: Wednesday, November 27, 2002 3:14 PM
Subject: Re: dynamic pictures in RTF


> From the input stream of the BLOB object received from the database do:
>
> StringBuffer sb = new StringBuffer();
> int byte_val = is.read(); //is is the name of the InputStream
> while (byte_val != -1) {
> sb.append(Integer.toString(byte_val, 16));
> byte_val = is.read();
> }
> puth the content of the StringBuffer in the Context.
> Check out the documentation of java.sql.Blob java.io.InputStream
> and Integer.toString()
>
>
> --
> To unsubscribe, e-mail:
<mailto:velocity-user-unsubscribe@xxxxxxxxxxxxxxxxxx>
> For additional commands, e-mail:
<mailto:velocity-user-help@xxxxxxxxxxxxxxxxxx>
>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise