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(
  final Session session,
  final UuidValue authUserId,
  final Uint8List imageBytes, {
  final Transaction? transaction,
}) async => _setUserImage(
  session,
  authUserId,
  UserImageFromBytes(imageBytes),
  transaction: transaction,
);