If using corn on the cob, cook them until soft. Scrape off the corn from the cob with a knife. If using frozen corn, just rinse them and drain very well. Make sure there is no moisture.
Pulse them coarsely few times.
Add the rest of the ingredients and mix. Adjust salt as needed.
Heat oil in a deep pan for frying. Drop small portions of this mixture to the hot oil.
Fry until golden. Drain them on kitchen tissues. Serve hot or warm.