AWS S3 upload a file

Is there a way to easily upload a file to S3 or does one always have to create an IOBuffer read the file and upload the content that way. If that is the case is there any general way of doing this which works on text data as well as on binary files?