You are not logged in.
Pages: 1
Thank you very much. updateblob worked for me
Hello
I have a Server-Client program and I cannot save images to the database via the Client.
TSQLRESIM = class(TOrm)
private
fscl: RawUTF8;
fPicture:RawUTF8;//RawBlob;
fdel: byte;
published
property SCLID : RawUTF8 read fscl write fscl;
property PICTURE : RawUTF8{ RawBlob} read fPicture write fPicture;
property DELETED: byte read fdelwrite fdel;
end;
MAKRSM:= TSQLRESIM.CREATE;
MAKRSM.SCLID:=x;
r:=TRawByteStringStream.Create();
r.LoadFromFile(OPD.FileName); // OPENDIALOG
r.Position:=0;
MAKRSM.PICTURE:=StringToUtf8(r.DataString);
if aClient.orm.Add(MAKRSM, True) = 0 then
showmessage('OK');
SCLID ok but PICTURE empty. i try rawblob PICTURE empty
I am getting an error. i guess i couldn't
I am sory. I deleted code.
I want an example that can help.
Hello there. I am a new user of mormot. In my program, I am sending files, sqlite database and sending text messages. I want to do it using Mormot. I learned a little bit and did it using the forum for sqlite and message. I can not send files. I've reviewed the demos.
1- Do I need to use a separate server for each service? (httpserver)
2- There is nowhere a comprehensive demo or sample for submitting files.
I am sorry for my English.
Pages: 1