Can Anyone please suggest me the way or sample code to write data (line-by-line) into S3.
Its like a stream coming in to some file, as soon as my program receives each line, it has to be written in S3. So I need only one buckets for that and one file in s3.
Sample input :
String lines[] = ["This is first line","This is Second line", "This is Third Line"]
s3 Initialization,...etc
itererator i = lines;
while (i.hasnext())
{
s3Service.putObject(testBucket, i); // Write each line in S3
}
Please check the flow and suggest me with code sample.
Very much appreciated...