Skip to content
Back to formatted view

Raw Message

Message-ID: <76189e25050816063321b42d24@mail.gmail.com>
Date: 2005-08-16T13:33:05Z
From: Márcio de Medeiros Ribeiro
Subject: Image from bytes streams
In-Reply-To: <43019D0E.5090901@maths.lth.se>

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 into the hard disk, my Java program reads the
file before the save operation completes (500Kb for example). So, I
got only a part of the file and hence the image... :(

One solution is read the image and search for a byte which represents
the end of the file, but it depends on the image format...

So, how can I discover that R image save operation stored the complete
file into the hard disk?

Thank you one more time!
-- 
M??rcio de Medeiros Ribeiro
Graduando em Ci??ncia da Computa????o
Departamento de Tecnologia da Informa????o - TCI
Universidade Federal de Alagoas - UFAL
Macei?? - Alagoas - Brasil
Projeto ArCo - Arcabou??o de Comunidades
Contato: +55 82 354-3358/9997-6794