Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question for quicklib #99

Open
jiangwei7480 opened this issue Mar 5, 2022 · 5 comments
Open

question for quicklib #99

jiangwei7480 opened this issue Mar 5, 2022 · 5 comments

Comments

@jiangwei7480
Copy link

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

@exilon
Copy link
Owner

exilon commented Mar 5, 2022

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

@jiangwei7480
Copy link
Author

jiangwei7480 commented Mar 6, 2022 via email

@exilon
Copy link
Owner

exilon commented Mar 8, 2022

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!');

@jiangwei7480
Copy link
Author

jiangwei7480 commented Mar 8, 2022 via email

@exilon
Copy link
Owner

exilon commented Mar 9, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants