Publish Restful returning object as base64string (>65535)
Posted: Thu Apr 29, 2021 10:59 am
Hi
I am trying to publish a restful API, using a server module, but I want to return between that information, an object with base64string information.
Starting with the basic example, I would think the idea is to add another property and instead of making it a field, make it an object, then populate the object with something like this...
#STD_QSEL := 'c:\temp\DIYStand.pdf'
#File.FromFile Path(#STD_QSEL)
#File.FromBase64String String(#File.AsBase64String)
but when trying to add a property, Type Object, it keeps telling me that it need an Schema property...
Has anyone done that yet? Any ideas how to approach it?
thank you
I am trying to publish a restful API, using a server module, but I want to return between that information, an object with base64string information.
Starting with the basic example, I would think the idea is to add another property and instead of making it a field, make it an object, then populate the object with something like this...
#STD_QSEL := 'c:\temp\DIYStand.pdf'
#File.FromFile Path(#STD_QSEL)
#File.FromBase64String String(#File.AsBase64String)
but when trying to add a property, Type Object, it keeps telling me that it need an Schema property...
Has anyone done that yet? Any ideas how to approach it?
thank you