Konuyu Oyla:
  • Derecelendirme: 5/5 - 1 oy
  • 1
  • 2
  • 3
  • 4
  • 5
JSonToObject TBytes
#1
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  Rolleyes

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;
Cevapla


Bu Konudaki Yorumlar
JSonToObject TBytes - Yazar: edo - 07-03-2017, Saat: 14:24
JSonToObject TBytes - Yazar: edo - 08-03-2017, Saat: 11:56

Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
  REST.Json, TJSon.JsonToObject sorunsalı Gürcan 15 10.438 08-12-2022, Saat: 17:01
Son Yorum: 3ddark
  Rest Service TBytes edo 1 2.450 25-10-2017, Saat: 23:58
Son Yorum: ismailkocacan



Konuyu Okuyanlar: 1 Ziyaretçi