private void Init() { User = _constantUserInstance.GetUser(); byte[] imageByte = _constantUserInstance.GetProfilePic(); // if stream is null, use the empty profile picture ProfilePic = imageByte != null?ByteToImage(imageByte) : ImageSource.FromFile("Assets/Images/emptyProfile.png"); }
private void InitUser() { User = _constantUserInstance.GetUser(); }