Bring a large stockpot of salted water to a boil. Add the corn and cook until tender, about 7 minutes. Remove the corn from the water, cool slightly, then cut the kernels off the cobs.
Preheat the oven to 400°. In a small bowl, fold together the cooked corn kernels, ricotta and basil. Season with salt.
In another small bowl, season the cornmeal with salt and pepper. In a separate small bowl, whisk together the whole egg and yolk with a tablespoon of water.
Carefully open each zucchini blossom, fill each with about 2 rounded teaspoons of the ricotta mixture and gently twist the end of each blossom to close. Brush the blossoms lightly with the egg wash and sprinkle with cornmeal. Arrange the stuffed blossoms in a baking dish and drizzle with the olive oil. Bake until golden, about 20 minutes. Serve immediately.