Stores content type and retrieves base64 string of avatar.