According to StillTasty, the best way to store corn on the cob is unhusked and uncovered in the refrigerator. Typically, corn on the cob lasts 1 to 2 days if refrigerated.
Corn on the cob can also be stored in the freezer. Before freezing corn on the cob, it must be husked, have all of the silk removed and then washed. After washing the corn, it should be boiled for 7 to 11 minutes, depending on the size of the corn cobs, and then plunged in ice water after boiling. Lastly, the corn should be dried and placed in freezer bags or airtight containers. Corn on the cob lasts for up to 8 months in the freezer.