async SetContentObjectImage({libraryId, objectId, image}) {
    const editResponse = await this.EditContentObject({
      libraryId,
      objectId
    });

    const uploadResponse = await this.UploadPart({
      libraryId,
      objectId,
      writeToken: editResponse.write_token,
      data: image,
      encrypted: false
    });

    await this.MergeMetadata({
      libraryId,
      objectId,
      writeToken: editResponse.write_token,
      metadata: {
        "image": uploadResponse.part.hash,
      }
    });

    await this.MergeMetadata({
      libraryId,
      objectId,
      writeToken: editResponse.write_token,
      metadataSubtree: "public",
      metadata: {
        "image": uploadResponse.part.hash,
      }
    });

    await this.FinalizeContentObject({
      libraryId,
      objectId,
      writeToken: editResponse.write_token
    });
  }
/**
   * Set the image associated with this object
   *
   * Note: The content type of the object must support /rep/image
   *
   * @methodGroup Content Objects
   * @namedParams
   * @param {string} libraryId - ID of the library
   * @param {string} objectId - ID of the object
   * @param {Blob | ArrayBuffer | Buffer} image - Image to upload
   */
Set the image associated with this object
Note: The content type of the object must support /rep/image


Set the image associated with this object Note : The content type of the object must support / rep / image
async SetContentObjectImage({libraryId, objectId, image}) {
    const editResponse = await this.EditContentObject({
      libraryId,
      objectId
    });
    const uploadResponse = await this.UploadPart({
      libraryId,
      objectId,
      writeToken: editResponse.write_token,
      data: image,
      encrypted: false
    });
    await this.MergeMetadata({
      libraryId,
      objectId,
      writeToken: editResponse.write_token,
      metadata: {
        "image": uploadResponse.part.hash,
      }
    });
    await this.MergeMetadata({
      libraryId,
      objectId,
      writeToken: editResponse.write_token,
      metadataSubtree: "public",
      metadata: {
        "image": uploadResponse.part.hash,
      }
    });
    await this.FinalizeContentObject({
      libraryId,
      objectId,
      writeToken: editResponse.write_token
    });
  }
async SetContentObjectImage ( { libraryId , objectId , image } ) { const editResponse = await this . EditContentObject ( { libraryId , objectId } ) ; const uploadResponse = await this . UploadPart ( { libraryId , objectId , writeToken : editResponse . write_token , data : image , encrypted : false } ) ; await this . MergeMetadata ( { libraryId , objectId , writeToken : editResponse . write_token , metadata : { "image" : uploadResponse . part . hash , } } ) ; await this . MergeMetadata ( { libraryId , objectId , writeToken : editResponse . write_token , metadataSubtree : "public" , metadata : { "image" : uploadResponse . part . hash , } } ) ; await this . FinalizeContentObject ( { libraryId , objectId , writeToken : editResponse . write_token } ) ; }
Set the image associated with this object
 Note: The content type of the object must support /rep/image
Set the image associated with this object Note : The content type of the object must support / rep / image