Junk data is stored in clob datatype when I do compression using GZIPOutputStream or DeflaterOutputStream.
My oracle character set is WE8ISO8859P1 , but the same piece of code is working with US7ASCII character set
Any ideas ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Perhaps you should be using a BLOB. CLOBS are designed to store character data which is not what you have. You can test this by base64 encoding the gzipped data before storing in CLOB. This should work but probably not a good solution for you as Base64 will increase the size of the payload by about 30%.