Thank you for the responses - I have resolved the issue by moving the response to NVARCHAR string field, then extracting the name and value pairs into an array thus :
Def_List Name(#List_Stock_Levels) Fields(#product_id #quantity) Counter(#LISTCOUNT) Type(*WORKING) Entrys(*MAX)
Define Field ...
Search found 7 matches
- Thu Mar 27, 2025 12:30 am
- Forum: Questions & Answers
- Topic: How can I read JSON object containing keyed paired values ?
- Replies: 3
- Views: 48896
- Sat Mar 15, 2025 3:30 am
- Forum: Questions & Answers
- Topic: How can I read JSON object containing keyed paired values ?
- Replies: 3
- Views: 48896
How can I read JSON object containing keyed paired values ?
The API returns a JSON object with product IDs as keys and their respective quantities as values? i.e keyed pair value.
i.e. { "product_id_1": "quantity_1", "product_id_2": "quantity_2", "product_id_3": "quantity_3"}
The following code only returns the quantity, and not the product IDs..
For Each ...
i.e. { "product_id_1": "quantity_1", "product_id_2": "quantity_2", "product_id_3": "quantity_3"}
The following code only returns the quantity, and not the product IDs..
For Each ...
- Sat Feb 15, 2025 2:46 am
- Forum: Questions & Answers
- Topic: Issue with Base64String longer than 65535 in a server module
- Replies: 1
- Views: 29612
Re: Issue with Base64String longer than 65535 in a server module
RESOLVED :) - had to use the FileStreamWriter to decode base64 value to PDF in my case i.e.
#ToDocumentPath := '/SOP/'
#ToDocumentPath := #ToDocumentPath.Trim + #TBINVP + #SHIPMENTID.AsDisplayString( NumString_L ) + '.' + #iOperationRequest.ContentJsonIn.PackingSlipFormat
#ToDocumentPathSave ...
#ToDocumentPath := '/SOP/'
#ToDocumentPath := #ToDocumentPath.Trim + #TBINVP + #SHIPMENTID.AsDisplayString( NumString_L ) + '.' + #iOperationRequest.ContentJsonIn.PackingSlipFormat
#ToDocumentPathSave ...
- Wed Feb 12, 2025 11:14 pm
- Forum: Questions & Answers
- Topic: Issue with Base64String longer than 65535 in a server module
- Replies: 1
- Views: 29612
Issue with Base64String longer than 65535 in a server module
We have a server module ( JSON restful call ) to accept shipment data which includes PDF packing slip encoded in Base64String. We have no issues with PDFs which are less than 64Kb but where PDFs are greater than 64Kb, the statement high-lighted in bold/red fails:
We have verified that ...
We have verified that ...
- Thu Oct 03, 2019 8:34 pm
- Forum: Questions & Answers
- Topic: How do you decode a base64 string and turn it into a file (as pdf) and save it to a network drive
- Replies: 5
- Views: 30273
Re: How do you decode a base64 string and turn it into a file (as pdf) and save it to a network drive
Integrator SMB appears to be the ideal solution - What are the steps involved in setting up and using SMB service? Do you need to install any third party software or is it all part of Integrator?
- Tue Oct 01, 2019 11:54 pm
- Forum: Questions & Answers
- Topic: How do you decode a base64 string and turn it into a file (as pdf) and save it to a network drive
- Replies: 5
- Views: 30273
Re: How do you decode a base64 string and turn it into a file (as pdf) and save it to a network drive
Thanks for your help.
The penny has dropped!
I believe I was over-complicating the issue - The bind service to read HTTP request content with the BLOB field receiving the 64bit encoded field element creates a object file with a .BIN extension. By reading the BLOB field will give you a path to the ...
The penny has dropped!
I believe I was over-complicating the issue - The bind service to read HTTP request content with the BLOB field receiving the 64bit encoded field element creates a object file with a .BIN extension. By reading the BLOB field will give you a path to the ...
- Thu Sep 26, 2019 6:43 pm
- Forum: Questions & Answers
- Topic: How do you decode a base64 string and turn it into a file (as pdf) and save it to a network drive
- Replies: 5
- Views: 30273
How do you decode a base64 string and turn it into a file (as pdf) and save it to a network drive
LANSA Integrator - How do you decode a base64 string and turn it into a file (as pdf) and save it to a network drive using a function?
I am working on a project using Royal Mail API Shipping V2 REST APIs.
One of the APIs sends a JSON response back containing an entity which is in BASE64 encoded ...
I am working on a project using Royal Mail API Shipping V2 REST APIs.
One of the APIs sends a JSON response back containing an entity which is in BASE64 encoded ...