Title: RE: [JAVA3D] Out of topic: How to store and serialize imageseconomically

Thanks Paul,

Sounds like this might work.

Pasi

-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Dipl. Ing. Paul
Szawlowski
Sent: 12. marraskuuta 2002 10:34
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Out of topic: How to store and serialize
imageseconomically


Pasi Paasiala schrieb:
> Thanks Brad,
>
> I knew this and this is what I referred to as hiding something under the
> carpet. I'd use this as the last resort since I'm afraid that my file
> sizes may start creeping larger and I don't notice that early enough.
> Perhaps I wasn't clear in my mail. (I'm not sure if I'm clear enough now
> :) I'd like to ensure that only absolutely necessary things get serialized.
>
> Anyway I'd like to be able to compress the images also when they are in
> the working memory and zipping of the serialized file doesn't help in that.
>

Just my 2c. Don't know if this works, but how about using
ByteArrayOutputStream together with a ZipStream to store your images in
  zipped format in a byte array in memory. With ByteArrayInputStram and
a zip stream you unpack them from memory when needed.

regards
Paul

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to