Disclaimer
Let's say you had a vast amount of energy which you've somehow harnessed from the sun and you need to transfer it to earth. It is obviously impossible to build a wire from the earth to the sun as they constantly rotate. Here's my theoretical solution (which is admittedly a railgun and a receiving contraption) :