I am trying to get an object from my AWS S3 bucket with the getObject function however, it seems like it returns a Uint8Array - which is an array of 8-bit unsigned integers
. I can't figure out how to convert this back into my object I stored in my S3 bucket.
Does anybody know how to do this?
Thanks.
EDIT:
The object looks something like this:
awsServices.getObject(core.splitUrlOff(key)).then(object => ({
key: object.key,
description: object.description,
likes: object.likes,
location: object.location,
time: object.time,
uuids: object.uuids,
views: object.views
}))