This documentation on storing binary data should b...
# dev
m
This documentation on storing binary data should be helpful: https://www.medplum.com/docs/fhir-datastore/binary-data
r
Thanks @medplummatt ! Following up we also have this document regarding how to capture external documents: https://www.medplum.com/docs/charting/external-documents
@moiz_80309 we're happy to help. In the future, you'll probably find more comprehensive support in the #1094022380659155005 channel
m
Hello @rahul1 , @reshma @medplummatt , Thank you for your previous assistance; it was helpful to some extent. However, I am currently encountering an issue with creating an AWS client within Medplum. Specifically, I need to develop an AWS client to upload media files to an S3 bucket before adding them to the Binary resource or Medplum database. I am aware that an AWS client can be created in the packages/app directory since it is a React application. However, my requirement is to have the AWS client available in the packages/core directory, as this is where I need to utilize it. Could you please provide guidance on how to create or integrate an AWS client within the packages/core directory? Any detailed instructions or suggestions you can offer would be greatly appreciated.
This is the error that it throws. I'm using aws-sdk package for this and i have installed it with
npm install aws-sdk
in packages/app **Uncaught ReferenceError: global is not defined at ../../node_modules/aws-sdk/node_modules/buffer/index.js (aws-sdk.js?v=37914600:13711:34) at __require (chunk-G3PMV62Z.js?v=37914600:8:50) at ../../node_modules/aws-sdk/lib/browserHashUtils.js (aws-sdk.js?v=37914600:15069:18) at __require (chunk-G3PMV62Z.js?v=37914600:8:50) at ../../node_modules/aws-sdk/lib/browserHmac.js (aws-sdk.js?v=37914600:15112:21) at __require (chunk-G3PMV62Z.js?v=37914600:8:50) at ../../node_modules/aws-sdk/lib/browserCryptoLib.js (aws-sdk.js?v=37914600:15626:16) at __require (chunk-G3PMV62Z.js?v=37914600:8:50) at ../../node_modules/aws-sdk/lib/browser_loader.js (aws-sdk.js?v=37914600:19234:23) at __require (chunk-G3PMV62Z.js?v=37914600:8:50)**
165 Views