private InputStream transformByte(byte[] b) throws Exception
{
if(null!=b && b.length > 0)
{
InputStream input = new ByteArrayInputStream(b);
return input;
}
else
{
return null;
}
}
private static byte[] transformInputstream(InputStream input)throws Exception
{
byte[] byt= null;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
int b=0;
b = input.read();
while( b != -1)
{
baos.write(b);
b = input.read();
}
byt = baos.toByteArray();
return byt;
}