You are not logged in.
The function TPdfDocument.CreateFileAttachmentFromBuffer in unit mormot.ui.pdf.pas doesn't compile in the current version. On line 7875:
mime := GetMimeContentType(pointer(Buffer), length(Buffer), Description);
there's a compilation error:
[dcc32 Error] mormot.ui.pdf.pas(7875): E2010 Incompatible types: 'RawByteString' and 'Pointer'
Same error on line 7877.
Offline
You are right.
Should be fixed now with
https://github.com/synopse/mORMot2/commit/5f8829421
Offline
Thanks a lot for fixing the issue—I really appreciate your quick help! Everything compiles perfectly now.
Also, big thumbs up for the awesome work on the mORMot2 library—it’s a fantastic tool and a pleasure to work with!
Offline