Category : amazon-s3

I try to create an application for use the AWS API. For this, i programme in c++ with the library CURL. I test my application with "GET" request and it’s work. After, i test with the "PUT" request but, i have an error : <?xml version="1.0" encoding="UTF-8"?> <Error><Code>NotImplemented</Code> <Message>A header you provided implies functionality that ..

Read more

I would like to create multiple files in AWS from a single local file without actually reading the file data into a buffer. Each file has: destination name (in AWS) offset (starting point of the local file) size (how many bytes from the offset to upload) For example: Local file size is 1MB. File1 : ..

Read more

I have been using the Aws-sdk-cpp for s3 and had a quick question as to how I could edit the provided CMakeLists.txt file that is provided by aws (https://github.com/awsdocs/aws-doc-sdk-examples/blob/master/cpp/example_code/s3/CMakeLists.txt) to be able to include other headers as I keep running into undefined reference errors. Based off of the provided CMakeLists.txt file it will build any ..

Read more

I have the code below that saves a file locally, uploads it to my s3 bucket, and deletes it after. filename = os.path.join(directory, ‘{}.mp3’.format(name_of_file)) wf = wave.open(filename, ‘wb’) wf.setnchannels(CHANNELS) wf.setsampwidth(self.p.get_sample_size(FORMAT)) wf.setframerate(RATE) wf.writeframes(recording) #this will be wher lambda function will go self.upload_file(filename, bucketName, name_of_file) delete_name = name_of_file name_of_file = file_name wf.close() os.remove(filename) def upload_file(self, file_name, bucket, ..

Read more

I have the code below that saves a file locally, uploads it to my Amazon S3 bucket, and deletes it after. filename = os.path.join(directory, ‘{}.mp3’.format(name_of_file)) wf = wave.open(filename, ‘wb’) wf.setnchannels(CHANNELS) wf.setsampwidth(self.p.get_sample_size(FORMAT)) wf.setframerate(RATE) wf.writeframes(recording) #this will be wher lambda function will go self.upload_file(filename, bucketName, name_of_file) delete_name = name_of_file name_of_file = file_name wf.close() os.remove(filename) def upload_file(self, file_name, ..

Read more