Questions tagged as 'datasnap'

1
answer

How to return the image converted to base64 in Postman [closed]

I have Web Service REST Server , I need to traffic a web service image to the client, when the client requests a certain image, the web service converts to base64 and sends it to the client. I'd like to know what I'm doing to tes...
asked by 14.10.2016 / 18:38
2
answers

Apache + Delphi XE7 + Datasnap. Problems with memory

Developed a program with Apache, Delphi XE7 and Datasnap. My Apache httpd.exe consumes memory until I give the message "Out of Memory" so I need to restart Apache. I configured ServerModule (FireDac components, Mysql) and WebModule to run a s...
asked by 24.04.2015 / 14:56
2
answers

FireDac multithread (Concurrent Connections - REST Server) DELPHI

Good morning people, I would like to ask for your help, if anyone can help, I am very grateful. The question would be fairly simple, How to work with Multi Thread in FireDac? In other databases, such as DBISAM, you have a Session compo...
asked by 17.02.2017 / 13:10
1
answer

How to get request Header passing the Authorization Bearer using DataSnap

I'm using Delphi XE7 , I have a WebService REST done from the DataSnap REST project, I need to get the bearer-token passed via Header by the client, but DataSnap REST by default it executes as Basic...
asked by 29.11.2016 / 20:59
1
answer

Delphi Web Service parameters

I have a service running in Delphi with DataSnap REST, it serves to read data and returns the query to who requested it, but now the client needs to consume this data via web passing some parameters, until then beauty, did the function it return...
asked by 04.10.2016 / 16:33
1
answer

ApplyUpdates on REST with Firedac

I'm doing a project that uses a REST server with FireDac . I use a Generic function to give my select but when I try to give my ApplyUpdates it does not give any error but the data is not reflected in the DB. My Applyupda...
asked by 01.07.2015 / 15:35
1
answer

Delphi - DataSnap - Rest - TServerMethods1

I'm running some Datasnap tests with REST and json. In the ServerMethods unit, which Delphi itself creates, has the function ReverseString , but well, how do I know who sent it? I would like to keep a log of information from...
asked by 07.06.2017 / 16:39
2
answers

How to register Datasnap service classes in runtime in Delphi XE7?

In Delphi XE3 I could register my service classes by doing the following: type TRegisterServices = class class procedure RegisterServices(AOwner: TComponent; DSServer: TDSServer); private class procedure RegisterService(AOwner:...
asked by 02.02.2015 / 21:32
0
answers

Divergence between Delphi versions - DataSnap

SQLServer database proc receives a single parameter that is the enrollment of the face and returns the balance. SQL Command: SELECT SUM(CASE Fl_Credito WHEN 1 THEN Vl_Movimento ELSE 0 END) - SUM(CASE Fl_Credito WHEN 0 TH...
asked by 20.12.2016 / 21:21
1
answer

Uploading Datasnap Image

I need to transfer images from Android to the Server, tried the code below but is giving the error, I use Delphi Berlin: Exception class EJNIException with message 'java.net.SocketException: sendto failed: EPIPE (Broken pipe)'. Client sid...
asked by 13.07.2017 / 13:30