Re: [R] Image from bytes streams

2005-08-16 Thread Henrik Bengtsson
The R graphics is not sent to the standard output of the R process, which you assume when you try to capture it via your Java 'input' stream. Simple illustration: C:\echo plot(1) | R --quiet --no-save plot(1) C:\ So where did the graphics go then? If you batch run R commands like this,

Re: [R] Image from bytes streams

2005-08-16 Thread Márcio de Medeiros Ribeiro
Hi, First, thank you very much for the answers... I have used the png() function before for generate the image and then capture its bytes. My big problem is that my program reads the image before that its complete by the png() function. For instance, my graphic image has 1000Kb. When R saves it

Re: [R] Image from bytes streams

2005-08-16 Thread Prof Brian Ripley
On Tue, 16 Aug 2005, Márcio de Medeiros Ribeiro wrote: First, thank you very much for the answers... I have used the png() function before for generate the image and then capture its bytes. My big problem is that my program reads the image before that its complete by the png() function. For

Re: [R] Image from bytes streams

2005-08-16 Thread Earl F. Glynn
Márcio de Medeiros Ribeiro [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... My big problem is that my program reads the image before that its complete by the png() function. For instance, my graphic image has 1000Kb. When R saves it into the hard disk, my Java program reads the file

[R] Image from bytes streams

2005-08-15 Thread Márcio de Medeiros Ribeiro
Hello! I'm trying to get an array of bytes from graphic images generated by R. Here, you can see my Java code: -- Process p = Runtime.getRuntime().exec(C:/Arquivos de