andersonvieirafiori

Forum Replies Created

Viewing 4 reply threads
  • Author
    Posts
    • #57648
      andersonvieirafiori
      Participant

      I found the problem.

      The kbmMWServer1ServeRequest method was used for testing and log purposes, but this was causing the error mentioned, after removing the use of the method, everything worked perfectly, I will investigate how I can get around it.

    • #57643
      andersonvieirafiori
      Participant

      I’m thinking it might be a bug with UniDac/FireBird, as I ran the same test with SQLite and everything worked correctly, I’m reviewing everything but I can’t find where it could be wrong.

    • #57618
      andersonvieirafiori
      Participant

      But can’t this cause future problems?

    • #57598
      andersonvieirafiori
      Participant

      I managed to solve it, following the instructions Kim gave me and following the blog

      REST easy with kbmMW #15 – Handling HTTP POST


      I was able to receive files via multipart form-data and via stream.

      ForceDirectories(‘.\receivedfiles’);
      sFileName:=’.\receivedfiles\file.png’;

      RequestStream.SaveToFile(sFileName);

      thank you very much

    • #56956
      andersonvieirafiori
      Participant

      Hi Kim

      I analyzed the document, I managed to make the partial operation, only the usDeletede that did not work, I could not understand at what moment I should add the index with the UpdateStatus that is mentioned in the excerpt
      “You can check the state of a record by checking the UpdateStatus property. It returns the current records state.
      Was it inserted (usInserted), deleted (usDeleted), modified (usModified) and unchanged (usUnmodified). I’m
      actually see usDeleted marked records, it require adding and switching to a special index that allows for
      showing deleted records… check the overloaded version of AddIndex which accepts providing a set of
      UpdateStatus flags, for which records to include in the index.”

      Where should I insert the index?
      When populating the table, or when creating the table?
      Thanks

Viewing 4 reply threads