Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Aurora bug with DataInput.readFully ?
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
![]() |
![]() |