I think the guy in question is a jackass and your friend isn’t much better.
Seriously, in this scenario, the problem is not what you wore, or your physique, it’s the guy. So he’s not into you, OK, but there are better ways of handling that than being a complete tool. You took the time to dress well and show up, he could at least have dinner before making some excuses, leaving, and giving you the friend speech over the phone the next day. It’s not awesome but it has the distinction of not doing something the Situation would look down on.
Also, how you didn’t explain to your friend what the five fingers said to the face for that see-through blouse comment is pretty much totally beyond me. It’s not your fault she’s a friend to douches: no blouse you own is going to fix that.