Begin by slicing the kernels from the cobs with a sharp knife using a downward stroke. Then, rinse the corn to remove any debris and then place it in a bowl.
Add the garlic, chopped cilantro, red or green chili, scallion, soy sauce, flour, eggs, and water to the corn, mix well to combine.
Season with salt and pepper to your taste, and then mix well again. When well combined, the mixture should be firm enough to hold its shape, but not stiff.
After heating the oil in a large frying pan, add spoonfuls of the corn mixture to the pan, gently spreading each one out with the back of the spoon to shape the fritters. Cook for 1 to 2 minutes on each side.
Drain the first batch of fritters on some paper towels and then transfer them to a foil covered dish to keep them warm while frying more fritters in the same way.
Serve the fritters hot with the sweet chili sauce.