If it has a chip or a card, just dry it out, even in the dryer, and it will still retrieve photos on the computer. I am a professional photographer and at times, I forget that I have them in my pocket of my pants. They get washed and dried in the machines and still work. As for the camera - try drying it out in the sun for a long time to make sure all the moisture is out of it and it may work again. That happened to one of my laptops, spilled liquid on the keyboard. It didn't work and I was upset (I was at an event far from home) and years later, we tried it by accident and it started up and has been working since.
Don't throw those chips or cards away, they will work. Trust me.