|
Re: dynamic pictures in RTF: msg#00204jakarta.velocity.user
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> |
|---|---|---|
| Previous by Date: | Re: dynamic pictures in RTF: 00204, Anakreon Mejdi |
|---|---|
| Next by Date: | Need someone to do xdocs/DVSL work: 00204, Geir Magnusson Jr . |
| Previous by Thread: | Re: dynamic pictures in RTFi: 00204, Anakreon Mejdi |
| Next by Thread: | Need someone to do xdocs/DVSL work: 00204, Geir Magnusson Jr . |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |