AnsweredAssumed Answered

How to stream a pdf or docx document into a byte array

Question asked by ThierryGuemboura on May 2, 2018
Latest reply on May 5, 2018 by beverly

I am still working on my cURL-JSON project. How can I stream a pdf or docx document into an array and determine the size. My API contact doesn't know (I don't blame him) how to do that in FileMaker, all he can tell me is that the data transmitted should look like:

{"Claim_Data":{"Company":"CPIC","ClaimNum":"550100005432","ReserveAmount":1234.56,"ReserveChangeNotes":"test reserve change"},"LocalUserInfoLookup":{"LoginName":"tguemboura"},"Claim_Update_Document":[{"Document_File_Size":83706,"Document_File_Name":"C:\\Users\\dsun.PMA\\Documents\\CDS Webservice Documentation\\CDS Webservice Documentation.docx","Document_Data":"UEsDBBQABgAIAAAAIQAAe"}]}

What is that blue string?

Thank you in advance.

Outcomes