Hi,
When i tried use Sample_Employee data, it has Binary data and when send JSON,
it generates errors because Binary data is displayed as text and there exceeded length.
Maybe it didn't convert (TextToBinaryData) before send JSON.
How can i fix it?
Regards,
Huyen IT wrote:
Hi Huyen,
We had faced similar issue with images. However we took a workaround to resolve it.Before sending the data with JSON, we converted them to base64 string.
BinaryToBase64()
And later before storing to DB convert back from base64 string to binary if the image datatype is binary.
Base64ToBinary()
Somehow we found issues with BinaryDataToText and TextToBinaryData and hence recommend not using it.
BinaryDataToText()
TextToBinaryData()
Saugat
Saugat Biswas wrote:
Thanks Saugat Biswas,
This is the solution, but in my case, it should be handled in Data GridFramework.