You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Jan Vesely <ja...@quinity.com> on 2002/12/02 13:56:43 UTC

dynamic pictures in RTF part II

Hi everyone,

at first I would like to thank everyone who helped me so far...
And I have another question:
I have a working rtf template, I have a stringbuffer of a jpg image in hex
format
I would like to display the real picture in my rtf document. I have looked
and found that I should use the \pict directive in my rtf in order to
include & display the pic.
However, when I do that, I do not see the picture. When I do

sb.append("\pict ");
fis = new FileInputStream(imageFileName);

int byte_val = fis.read();

while (byte_val != -1) {

   sb.append(Integer.toString(byte_val, 16));

   byte_val = fis.read();

}



Then nothing happens. Anyone any ideas? It would really really help me ...
thank you!!!

Jan



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: dynamic pictures in RTF part II

Posted by Jan Vesely <ja...@quinity.com>.
Oh, sorry, wrong copy/paste ... have tried that as well ... :-(    ... did
not work either ...



----- Original Message -----
From: "Attila Szegedi" <sz...@freemail.hu>
To: "Velocity Users List" <ve...@jakarta.apache.org>; "Jan Vesely"
<ja...@quinity.com>
Sent: Monday, December 02, 2002 2:04 PM
Subject: Re: dynamic pictures in RTF part II


> ----- Original Message -----
> From: "Jan Vesely" <ja...@quinity.com>
> To: "Velocity Users List" <ve...@jakarta.apache.org>
> Sent: 2002. december 2. 13:56
> Subject: dynamic pictures in RTF part II
>
>
> >
> > sb.append("\pict ");
>
> use double-backslash in your Java string to output a single backslash:
>
>   sb.append("\\pict ");
>
> Attila.
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: dynamic pictures in RTF part II

Posted by Attila Szegedi <sz...@freemail.hu>.
----- Original Message ----- 
From: "Jan Vesely" <ja...@quinity.com>
To: "Velocity Users List" <ve...@jakarta.apache.org>
Sent: 2002. december 2. 13:56
Subject: dynamic pictures in RTF part II


> 
> sb.append("\pict ");

use double-backslash in your Java string to output a single backslash:

  sb.append("\\pict ");

Attila.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>