Ray served in the Indian Army for more than a decade. He participated in Operation Vijay in Kargil War of 1999. He served at the army hospital as a senior research fellow in "Oncosurgery" under the Indian council of medical research (ICMR). He also served in Army College of Medical Sciences, and Base Hospital, Delhi.