Preheat oven to 325 degrees. Put corn in medium bowl. Blend flour, sugar, margarine, salt, and eggs in a blender. Add to corn. Stir in green pepper and pimentos. Add cheese. Pour in a casserole dish and bake at least one hour. Pudding is done when a knife inserted in center comes out clean.