Questions tagged [datasnap]

DataSnap is a Delphi technology that allows the development of multi-tier applications

DataSnap is a Delphi technology that allows the development of multi-tier applications, most notably multi-tier database applications.

DataSnap offers the possibility to create Client-Server applications that communicate through the Internet, the local network, or the local host.

The main feature of DataSnap is the ability of the Client application to invoke methods that are implemented on a Server. DataSnap automatically generates the necessary interface for the Client to communicate with the Server, containing the prototypes of the Server methods.

http://docwiki.embarcadero.com/RADStudio/en/DataSnap_Overview_and_Architecture

501 questions
22
votes
1 answer

Handling TDataSet results in Xcode from Delphi XE2 Datasnap Server

I'm looking at the feasibility of using a Delphi XE2 DataSnap server pushing data from a SQL server through to an iPad application. I've written the DataSnap server application, and am looking now at the iOS application. The TServerMethod returns…
James
  • 251
  • 1
  • 5
16
votes
4 answers

Datasnap xe vs Remobjects DataAbstract

After asking this question I realized that to build what I need I'd better rely on some framework "REST and JSON ready". Since I own Delphi Professional I should upgrade to Enterprise to have DataSnap. Now the upgrade cost is in the same range as…
UnDiUdin
  • 14,924
  • 39
  • 151
  • 249
16
votes
9 answers

What are the current choices for Delphi Web & Web Service Development

I'm toying around with Delphi. Most of my desktop development is done in .Net, and embedded systems with C. I've done some web development in RoR & Python (Django, CherryPy) I am interested in taking a crack at a project that would be a web…
gbc
  • 8,455
  • 6
  • 35
  • 30
12
votes
1 answer

Delphi Seattle DataSnap Client - Proxy server settings not working

I'm connecting to a DataSnap server using a generated DS client proxy class, via TDSRESTConnection. The connection works fine and I can call the server methods. I now want to connect through a proxy server, so I am setting the properties on the…
Jonathan Wareham
  • 3,357
  • 7
  • 46
  • 82
10
votes
2 answers

Delphi XE2: How to define custom DataSnap REST URI?

I am using Delphi XE2 to write DataSnap REST service. I notice that the REST URI in DataSnap must strictly follow this format (refer here): http://my.site.com/datasnap/rest/URIClassName/URIMethodName[/inputParameter]* A famous example is sample…
Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132
9
votes
2 answers

Delphi XE2 DataSnap - Download File via TStream With Progress Bar

I've written a DataSnap server method that returns a TStream object to transfer a file. The client application calls the method and reads the stream fine. My issue is that the method call takes a while to complete before the TStream object is…
Jonathan Wareham
  • 3,357
  • 7
  • 46
  • 82
9
votes
2 answers

Is it possible to recompile the DataSnap packages in Delphi XE with a new/different version of Indy?

Okay -- we have an interesting problem. Some background: Our main application uses Indy 10. However, we take the Indy 10 source and fix bugs in it, recompile, and install our own set of Indy components. We are migrating to Delphi XE and want to…
Nick Hodges
  • 16,902
  • 11
  • 68
  • 130
9
votes
5 answers

What is the best Delphi n-tier low bandwidth technology?

I need to deploy a Delphi app in an environment that needs centralized data and file storage system (for document imaging) but has multiple branch offices with relatively poor inter connectivity. I believe a 3 tier database application is the best…
lgallion
  • 267
  • 3
  • 9
9
votes
2 answers

Midas.dll error loading midas.dll

I have a problem when I try my app on an other computer without Delphi. If I put midas.dll in the same folder / directory on System32 I always get error message Error loading midas.dll, but if I put midas.dll on the desktop then the error message…
X-88
  • 117
  • 1
  • 2
  • 10
9
votes
1 answer

Managing SQLConnection / Datasnap through client-server disconnects

In my Datasnap client application I use 1 TSQLConnection for my methods and ProviderConnection. The problems arise when the connection is lost. Both TSQLConnection.Connected and TSQLConnection.ConnectionState don't catch this. When my TSQLconnection…
r_j
  • 1,348
  • 15
  • 35
8
votes
3 answers

Delphi: Accessing JSON Objects within a JSON Array

I have a JSON Object, let's name it jObject that looks like this: { "id": 0, "data": "[{DAT_INCL: \"08/03/2012 10:07:08\", NUM_ORDE: 1, NUM_ATND: 1, NUM_ACAO: 2, NUM_RESU: 3}, {DAT_INCL: \"08/03/2012 10:07:09\", NUM_ORDE: 2,…
bpromas
  • 684
  • 1
  • 11
  • 25
8
votes
2 answers

How to get a token passed as header using datasnap?

In my client application I'm using the following code to add a token in the header: RESTRequest.Params.AddItem('Authorization', 'Bearer ' + MyToken, TRESTRequestParameterKind.pkHTTPHEADER, [TRESTRequestParameterOption.poDoNotEncode]); I'd like to…
Daniel Grillo
  • 2,368
  • 4
  • 37
  • 62
8
votes
2 answers

Return an image from a Delphi REST server and show it in a browser

When you return an image using a file stream object in a Delphi rest server, it will not display in a browser. Here is an example method that returns an image: function TServerClass.Image: TFileStream; begin Result :=…
Anders E. Andersen
  • 1,635
  • 2
  • 14
  • 20
8
votes
3 answers

Is DataSnap Optimized for responding to more than 1k users at the same time?

We want to start a big multi-tier application. The server side application must respond to more than 1000 users at the same time. We want to create server application by 64 bit compiler and client side with 32 bit. In this case we don't know…
Shaahin Ashayeri
  • 918
  • 2
  • 13
  • 30
7
votes
1 answer

How to build midas.obj from the midas source code

Recently I discovered a problem on the midas and I fixed it, the problem now is that I want to use MidasLib not the midas.dll and with the source code I'm only able to build the DLL. The source is C++ and I have very few knowledge with it. I know…
1
2 3
33 34