class Document include AsposeWordsCloud def initialize AsposeWordsCloud.configure do |config| config.api_key['api_key'] = "<foobar>" config.api_key['app_sid'] = "<foobar>" end @words_api = WordsApi.new end def put_convert_document format = 'pdf' request = PutConvertDocumentRequest.new(File.open('parent/child/file.docx', "r"), format) result = @words_api.put_convert_document request end end
However, after conversion was completed, the file was downloaded to my local drive in a
temp/ directory. As this will be running a serverless environment (AWS Lambda), I won’t have access to the file system.
Is there a way to i) stream the bytes to my runtime or ii) is there an integration with AWS S3, that lets me store conversion results in a specific bucket and location?