Aws sdk s3 to s3 copyObject checksum is null in CopyObjectResponse

  Kiến thức lập trình

When doing a s3 to s3 copy using aws sdk, I want to save the returned checksum from CopyObjectResponse, so that I can use it later to verify if file is modified or not
but checksum value returned is null

fun CopyObjectResponse.toCopyResponseModel(): CopyResponse =
    CopyResponse(
        etag = this.copyObjectResult().eTag(),
        isSuccessFull = this.sdkHttpResponse().isSuccessful,
        statusCode = this.sdkHttpResponse().statusCode(),
        checksum = this.copyObjectResult().checksumSHA256()
    )

how can i get checksum?

I can copy at max 5gb file in a singlePartCopy wondering can we use etag or not, will have to figure out multipart too since it changes on each copy even though the file is not modified

New contributor

Jayendra Dev Shukla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT