Fix simple client example.
improve file attachemnt client