I receive JSON from a webservice and parse it to an object:
Set wout=0set stream=##class(%Stream.TmpCharacter).%New()
For {
Quit:(httprequest.HttpResponse.Data.AtEnd || wout)
d stream.Write(httprequest.HttpResponse.Data.Read(32000,.tSC))
}
Set jsonob={}.%FromJSON(stream)jsonob contains a sub entity "pdf" which is a base64 string and %GetTypeOf() tells me it is a string.
However I am unable to read the nested jsonob.pdf into a stream or anything else as any attempt to use it result in a MAXLEN error.


.jpg)
.png)
.png)
.png)
.png)
.png)
.png)


.png)

