P
prakasan
hi All,
I have some data stored in the database as blob. I can read this blob
into byte array using jdbc. Now I need to read the byte array using
InputStream. The problem is I want to know if the data in the database
is stored in comprressed form. If the byte array is compressed I have
to use InflaterInputStream. other wise I can use ObjectInputStream.
Before using which stream to use with the byte array I want to know if
the byte array is compressed or not?
Any idea how this can be done??
thanks in advance,
Prakasan
I have some data stored in the database as blob. I can read this blob
into byte array using jdbc. Now I need to read the byte array using
InputStream. The problem is I want to know if the data in the database
is stored in comprressed form. If the byte array is compressed I have
to use InflaterInputStream. other wise I can use ObjectInputStream.
Before using which stream to use with the byte array I want to know if
the byte array is compressed or not?
Any idea how this can be done??
thanks in advance,
Prakasan