GZIPInputStream
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, September 6, 2002 01:15 AM

Hi I am trying to access the compressed field value from my database using GZIPInput but getting EOF exception while reading ,Code goes like this GZIPInputStream zin = new GZIPInputStream(rs.getBinaryStream("view_in_file") int i=0 while (true) { int b =zin.read if (b==-1) break; Character c= new Character((char)b) outs +=c.toString(); i++ } out.println(outs) can any body tell me how to get rid of java.lang.eofException cheers santosh    More>>

Hi

I am trying to access the compressed field value from my database using GZIPInput but getting EOF exception while reading ,Code goes like this


GZIPInputStream zin =
new GZIPInputStream(rs.getBinaryStream("view_in_file")

int i=0

while (true)

{
int b =zin.read

if (b==-1)

break;

Character c= new Character((char)b)

outs +=c.toString();

i++

}

out.println(outs)



can any body tell me how to get rid of java.lang.eofException

cheers
santosh

   <<Less
About | Sitemap | Contact