I have a code of the following code that works very well for a simple file upload but suppose I have an existing Want to add the file or just upload the random segment of the bytes like the first and last 10 bytes? Is it also possible with official SDK?
PutObjectRequest request = new PutObjectRequest (); File stream fs = new filestream (@ "c: \ myFolder \ MyFile.bin", FileMode.Open); Request.WithInstreamStream (FS); Request.WithBucketName (bucketName); Request.With key (keyName); Client.PutObject (request); Fs.Close (); There is no way to attach data to objects present in the S3. You must overwrite the whole file.
However, by saying this, degree is possible with support. This upload has been broken into fragments and is re-connected to the S3. But you have to do this as part of a single transfer and it's for big files.
Comments
Post a Comment