|
Re: dynamic pictures in RTF: msg#00203jakarta.velocity.user
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() |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: dynamic pictures in RTF: 00203, Jan Vesely |
|---|---|
| Next by Date: | Re: dynamic pictures in RTF: 00203, Jan Vesely |
| Previous by Thread: | Re: dynamic pictures in RTFi: 00203, Jan Vesely |
| Next by Thread: | Re: dynamic pictures in RTF: 00203, Jan Vesely |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |