Extracting the code from a printer cartridge chip

and how do i get the original data?. Searched in internet but still didn't get.