So Recently I was trying to upload Files specifically images to Amazon s3 which using Http and File modules seemed fairly straight forward and worked as expected. What I was not expecting is that I don’t seem to grasp how to achive the opossite which is to Get the file back from the S3 and present it using an img Html element. The img bucket in s3 is private So I guess I need to download it first using credentials but I can’t understend what is the proper way to do that and if tooling exist to make it easier such as in the Post case.
Do I get bytes from the body and then whith some decoder transform it to a file ? if so anybody has some recomendation of how to do that or any guide and or blog post would be really helpfull.
Or is there any way to just get a File record directly out of the Post body ? again any recommendation on the process to follow or any blog post would be really really helpfull.
Thank you all in advance.