setUserImageFromBytes method

Future<UserProfileModel> setUserImageFromBytes(
  1. Session session,
  2. UuidValue authUserId,
  3. Uint8List imageBytes, {
  4. Transaction? transaction,
})

Sets a user's image from image data.

The image is resized before being stored in the cloud and associated with the user.

Implementation

Future<UserProfileModel> setUserImageFromBytes(
  Session session,
  UuidValue authUserId,
  Uint8List imageBytes, {
  Transaction? transaction,
}) async => _setUserImage(
  session,
  authUserId,
  UserImageFromBytes(imageBytes),
  transaction: transaction,
);