}
public BasicInfo toBasicInfo() {
Name name = new Name(this.chineseName, this.englishName);
LocalDate birthday = JodaTimeUtil.parseLocalDate(this.birthday);
Portrait portrait = null;
try {
if (!this.portrait.isEmpty()) {
portrait = new Portrait(this.portrait.getOriginalFilename(), this.portrait.getContentType(), this.portrait.getBytes());
}
} catch (IOException e) {
e.printStackTrace();
}
return new BasicInfo(name, birthday, this.phone, this.email, this.qq, this.gender, this.address, this.selfDescription, portrait);