07-03-2017, Saat: 14:24
Merhaba,
Aşağıdaki class tanımı için ilgili kodu çalıştırdığımda TBytes tipinden dolayı
Internal: Value 77u/bcSxDQoNCmYgb3BJdSkgVGHFn8.......gVEwuDQpURVNMxLBNIEFMQU4= cannot be converted to be assigned to field Result in type TProcessTextImageResult.
şeklinde bir hata alıyorum. Result property'sinin tipini string yaparsam elime String tipinde bir bytes dizisi geçiyor onu da çözümleyemedim.
Konu ile ilgili fikri olan var mı acaba
Aşağıdaki class tanımı için ilgili kodu çalıştırdığımda TBytes tipinden dolayı
Internal: Value 77u/bcSxDQoNCmYgb3BJdSkgVGHFn8.......gVEwuDQpURVNMxLBNIEFMQU4= cannot be converted to be assigned to field Result in type TProcessTextImageResult.
şeklinde bir hata alıyorum. Result property'sinin tipini string yaparsam elime String tipinde bir bytes dizisi geçiyor onu da çözümleyemedim.
Konu ile ilgili fikri olan var mı acaba
TJson.JsonToObject<TProcessTextImageResult>(MemoContent.Lines.Text); TProcessTextImageResult = class private FSuspiciousSymbolsCount: Integer; FUnrecognizedSymbolsCount: Integer; FAllSymbolsCount: Integer; FAllWordsCount: Integer; FNotDictionaryWordsCount: Integer; FResult: TBytes; published property SuspiciousSymbolsCount: Integer read FSuspiciousSymbolsCount write FSuspiciousSymbolsCount; property UnrecognizedSymbolsCount: Integer read FUnrecognizedSymbolsCount write FUnrecognizedSymbolsCount; property AllSymbolsCount: Integer read FAllSymbolsCount write FAllSymbolsCount; property AllWordsCount: Integer read FAllWordsCount write FAllWordsCount; property NotDictionaryWordsCount: Integer read FNotDictionaryWordsCount write FNotDictionaryWordsCount; property Result: TBytes read FResult write FResult; end;