QuickLib icon indicating copy to clipboard operation
QuickLib copied to clipboard

question for quicklib

Open jiangwei7480 opened this issue 3 years ago • 5 comments

hi,hello: It happen error when runing ComplexObjects Example。JsonToObject method not success,for photo type field fail

jiangwei7480 avatar Mar 05 '22 07:03 jiangwei7480

What dephi version are you using? Could you send me more info? error text, if you have a photo.jpg into debug folder, etc...

exilon avatar Mar 05 '22 17:03 exilon

font{
    line-height: 1.6;
}
ul,ol{
    padding-left: 20px;
    list-style-position: inside;
}

new user object from JsonToObject method,user.Photo.Size property not equal to old.  Delphi version is D11.Message ID: @.***>

jiangwei7480 avatar Mar 06 '22 00:03 jiangwei7480

I run it without errors on Delphi 11 Alexandria. Where you get error? Maybe on at line 70? Assert(user.Photo.Size = photosize,'Photo serialize error!');

exilon avatar Mar 08 '22 21:03 exilon

hi,hello yes,my error is at line70.but after photo save

,new photo is error.

发送自我的盖乐世

-------- 原始信息 -------- 发件人: Exilon @.> 日期: 2022/3/9 05:02 (GMT+08:00) 收件人: exilon/QuickLib @.> 抄送: jiangwei7480 @.>, Author @.> 主题: Re: [exilon/QuickLib] question for quicklib (Issue #99)

I run it without errors on Delphi 11 Alexandria. Where you get error? Maybe on at line 70? Assert(user.Photo.Size = photosize,'Photo serialize error!');

― Reply to this email directly, view it on GitHubhttps://github.com/exilon/QuickLib/issues/99#issuecomment-1062205536, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATDP6ARY7NGPLEFXUG2JNXTU6657DANCNFSM5P7K4JGQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

jiangwei7480 avatar Mar 08 '22 23:03 jiangwei7480

ok, you get and error saving jpg to file isn't? Is Photo.size reported same before and after serialize? Can you remove savetofile line and send me what you see on console?

exilon avatar Mar 09 '22 21:03 exilon