I have the following code snippet that works great for simple file uploads. But let me say that I wanted to add to an existing file, or just load random pieces of bytes, such as the first and last 10 bytes? Is this possible with the official SDK?
PutObjectRequest request = new PutObjectRequest();
FileStream fs = new FileStream(@"C:\myFolder\MyFile.bin", FileMode.Open);
request.WithInputStream(fs);
request.WithBucketName(bucketName);
request.WithKey(keyName);
client.PutObject(request);
fs.Close();
source
share