Thanks mate for the above answer,
I am storing pictures in a column, also storing PDF files in another column
I would write a code to compress the attached file using external "command line tool" maybe or any simple way,
the thing took me long time with no positive result