Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Aurora bug with DataInput.readFully ?

Re: Aurora bug with DataInput.readFully ?

From: Emmanuel BOURG <smanux_at_dream.club-internet.fr>
Date: Fri, 20 Aug 1999 13:21:54 +0200
Message-ID: <37BD3A52.A42A56C0@dream.club-internet.fr>


Thanks, in fact i have found another solution, i use read(raw,0,raw.length) instead of readFully(raw). Now i'm trying to turn this byte[] into float[], but that's a Java issue :)

Emmanuel

"C. Ferguson" wrote :
>
> Hi Emmanuel,
>
> Try making the following code changes:
> byte raw[] = new byte[32767];
> to
> byte raw[] = new byte[4*1024]; // Becuase I know 4* works, you can
> change the 4 to something bigger, but
> // it's vm/driver
> dependent. As you've found 32767 seems to be Aurora's limit
>
> // Change the single read:
> dis.readFully(raw);
>
> // to a loop
> int bytesRead;
> while (bytesRead = dis.read(raw) != -1) {
> // Do something with the buffer raw.
> }
>
> Hope that helps.
> cindy
Received on Fri Aug 20 1999 - 06:21:54 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US