Foreign investors were net buyers of South African stocks Wednesday, purchasing R641 million worth of shares.