Skip to content Skip to sidebar Skip to footer

Using IO Library To Load String Variable As A Txt File To/from S3

I have old code below that gzips a file and stores it as json into S3, using the IO library ( so a file does not save locally). I am having trouble converting this same approach (i

Solution 1:

Duplicate.

For sake of brevity, it turns out there's a way to override the putObject call so that it takes in a string of text instead of a file.

The original post is answered in Java, but this additional thread should be sufficient for a Python-specific answer.


Post a Comment for "Using IO Library To Load String Variable As A Txt File To/from S3"