I'm going to relocate to Germany, Munich and basically wonder what is the best option - to buy some euro (~4-5 thousands) here, in San-Francisco or should just take some amount of cash in dollars buy some euros in Europe?

**Update:** Let me clarify what I mean by "best" - basically I'm interested in two things:

 1. Are there more places in Munich where I can exchange dollars for a reasonable price rather than places in San-Francisco? 

 2. Can I avoid the necessity of bringing lot of cash at all and just somehow indeed do a wire transfer to a german account while I'm already there?