Stream: implementers
Topic: InstanceOf Special Datatypes
Jason Chan (Jun 17 2021 at 17:39):
For instance definitions in fsh, does anyone know how to implement base64? For example in DocumentReference datatype in DocumentReference.content.attachment.data, attempting to set it to #VGVzdCBQYXRpZW50IFN1bW1hcnk, "VGVzdCBQYXRpZW50IFN1bW1hcnk", or #{VGVzdCBQYXRpZW50IFN1bW1hcnk} will all result in failure (VGVzdCBQYXRpZW50IFN1bW1hcnk is a sample base64 string BTW)
David Pyke (Jun 17 2021 at 17:48):
@Chris Moesel
Chris Moesel (Jun 17 2021 at 18:28):
@Jason Chan -- it looks like your base64 string is missing an =
sign at the end of it. If you use "VGVzdCBQYXRpZW50IFN1bW1hcnk="
, it works correctly. See: https://fshschool.org/FSHOnline/#/share/35tnIgp
Jason Chan (Jun 17 2021 at 20:47):
@Chris Moesel Thank you so much! got it working!
Last updated: Apr 12 2022 at 19:14 UTC