Win10 update may cause problems downloading files

Recent Win10 updates (in mid-2019) appear to have caused problems with our http methods in ReaderWIN.exe. The response data is being returned with a data type of 'object', when it should be 'string'. This causes any string methods applied to the response data to fail.

This can be fixed by saving the response data in a variable and casting it to a string, for example:

var rData = http.GetResponseData();
var rType = typeof(rData);
if (rType.toUpperCase() == 'OBJECT') {
   rData = rData.toString();
}

Then use the "rData" variable for subsequent processing.
Do not use the raw value from http.GetResponseData().

Article Details

Article ID:
264
Category:
Date added:
2019-07-23 03:16:59
Views:
207
Rating (Votes):
(585)