#1 Re: mORMot 2 » Uploading images from client to database » 2023-03-12 11:52:35

Thank you very much. updateblob worked for me

#2 mORMot 2 » Uploading images from client to database » 2023-03-11 11:29:32

Onur2x
Replies: 3

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

#3 Re: mORMot 1 » Many operations using Mormot » 2020-09-17 09:57:24

I am getting an error. i guess i couldn't

I am sory. I deleted code.
I want an example that can help.

#4 mORMot 1 » Many operations using Mormot » 2020-09-13 17:58:24

Onur2x
Replies: 4

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.

Board footer

Powered by FluxBB