- 최신
- 최다 투표
- 가장 많은 댓글
Check your $localPath is valid and the directory structure exists.
Another reason could be encoding/decoding issue, one of the most common issue is writing binary data (like image) in text mode.
Read-S3Object -BucketName $bucketName -Key $object.Key -File $localPath -FileMode "Binary"
You can also refer this link: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-content-encodings-examples-image-s3.html
Thanks for taking the time to answer Palvinder. I was thinking it was going to be something like that, that there were some settings that I was unaware of that affected the encoding of a binary file.
In looking deeper it seems using anything other than Cloudberry Explorer to extract the file, even the standard S3 web browser interface, yields a "corrupted" image file. I thought I had ruled out the web browser extraction as having an issue but apparently I was mistaken.
I used VBinnDiff to examine the differences in the files and it appears that the Cloudberry Backup utility has put a "wrapper" around the original file, and that wrapper is only removed by using a cloudberry product to extract the file from S3. This could be due to "Versioning" that is done by Cloudberry and not by the bucket itself.
I'll probably have to use CB Explorer to extract the entire folder structure, and then use a modified version of the script to extract what is needed.
Again, thanks for your time looking at this.
관련 콘텐츠
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 일 년 전
Can you share the code snippet here, I have seen this happening earlier so want to understand, how are you downloading it.