Pass Base64 encoded string using JsonTextReader value as new stream
We are consuming large JSON streams from an HTTP Post request. The goal is to stream the incoming body as JSON using JsonTextReader and extract the embedded base64 encoded binary files to disk. In XML, an equivalent method might be XMLReader.ReadElementContentAsBase64Async. Using JSON.NET, as we iterative how do we send the each item of the encodedImages array into a FileStream without holding the whole string in memory. Example JSON Object: { "company":"{clientCompany}", "batchName":"{clientBatchName}", "fileType":"{clientFileType}", "encodedImages":[ "{base64encodedimage}", "