Hi Prashant, Looking at the Javadocs of the "available()" method, it doesn't seem that you necessarily have a value superior to 0. That doesn't mean that your stream is empty but that read() method might block to get the next bytes.
What happens when you call read()? Best regards, Jerome -----Message d'origine----- De : news [mailto:[EMAIL PROTECTED] De la part de Prashant Envoyé : lundi 5 mai 2008 20:52 À : [email protected] Objet : Problem in writing/reading base64 encoded stream in blob(Oracle) Hi All, I am trying to write a InputStream(which is Base64 encoded using restlet api) to a blob, It goes succesfully in db. But at time of retrieving the same, it gives exact blob size what I have written in blob, but returns zero(0) when I call is.available() method on InputStream object got from blob. here is the code I have written: InputStream is = blob.getBinaryStream(); System.out.println(is.available()); Please help me out in getting out of this problem if any of you guys has done something like this before. Thanks prashant

