First, use a dull knife or a spoon to remove any excess corn from your clothes. As soon as possible, flush the stain with cold water. Pretreat the stained area with a prewash stain remover and launder as usual. Check the stained area before putting the garment in the dryer because high heat can set the stain. Repeat the treatment steps.
If your corn was covered in butter, you may need to follow the steps in removing a butter stain.
If the garment is dry clean only, point out and identify the stain to your professional cleaner. If you are using a home dry cleaning kit, be sure to treat the stain with the provided stain remover before putting the garment in the dryer bag.
Specific questions? Just ask here.