How to download a file from server using smartgwt? - file

On a client operation, a file is created on the server and I want to allow the client to download that file.
How can this be done?

You can always bring back the data to the client side with you rpc service sending an object.
You still can have a look here

Related

Proper way of sending data contained in csv file to server

I need to implement web client (react) and rest service (spring framerowk) that allows users to send data contained in csv file to the server.
For now I am just uploading csv file on client, send that file to server and parse it server side. But i wonder if maybe I should read that file on client side, covert it to json and only then send it to server - not as a file but just as a json data in request body.
Its unknown how big that file can be, it can have few rows of data or milions of rows.
What is the best option?
Thanks!

Send SMS via Sql server or copy text in Excel and send it from mobile

I know this is not the right place to ask this type of question but I searched google and found nothing about my topic
I want to send different sms to multiple persons via SQL server beside sms gateway is there any way to send it via sql server or transfer data and mobile number to excel sheet and send it via iPhone
I think the best way to do such thing is by registering and call a .NET dll assembly from SQL server.
for more details:
CLR Assembly C# inside SQL Server
Once you register the assembly correctly, you can call a C# function from inside the SQL. i suggest you do a URL get call, that can call a page at your server, which will do the API call from there.
this is very useful as you can mix it with SQL statement for example.
You can write something like:
Select CallURL('http://localhost/SMSgateway' + PhoneNum) from Users.
Thanks guys for your great responses I found an easier way to do it in iPhone using SA Group Text
just need to upload excel file on it with phone number and message contents and it will send it

ClientDataSet Data can't be updated to the server or even posted

So , i'm creating a datasnap TCP/IP server multiitier data base in Delphi XE7, i used in the server a mssql Database then connected it used a datasetprovider
in the Client Side i made a sqlConnection for connecting to DataSnap Server then i used a dsproviderconnection then i used "ClientDataSet"
when i run the Client Application i will a serval rows and post the modifcation but if i desactivate the ClientDataSet then reactivate it the data will be lost
so help me please i cant see what is the probleme there no error or something like that?
and thank you
Either don't deactivate the ClientDataSet (the data will get lost as you found) or save the data to a file or stream and reload it afterwards (SaveToFile/Stream, LoadFromFile/Stream).

How to intercept SQL traffic client side

I'd like to log all SQL that a client app is sending to a remote SQL server I have no access to. I'm thinking of some kind of client side proxy that can log and pass through data. It has to run on the same machine as the client app.
Any ideas appreciated.
SQL Server's protocol, TDS ("Tabular Data Stream") is not encrypted by default, so a trivial packet-forwarder could be used to proxy SQL Server connections and intercept commands (and their responses).
The TDS protocol specification is available from Microsoft's website, you could write your own proxy which can intercept commands that way: https://msdn.microsoft.com/en-us/library/dd304523.aspx?f=255&MSPPError=-2147217396
However, this is a large undertaking. You have other simpler options if you don't need to capture every connection:
If you control your application's source-code, then simply modify all database operations to intercept every SqlCommand's CommandText and Parameter values.
You could skip writing a proxy and instead use native packet-capture, you'll need to use WinPCap: https://www.winpcap.org/
You could also use SQL Server's Profiling features to get a log of every command executed: What are the APIs used by SQL Profiler?
What you are looking is called an SQL Profiler.
In specific - you are looking for an API for one.
I have never used an API of a profiler myself - but this one looks promising.
Also - take a look at this question for another sample.
If you want to have an impression of a working profiler client you can take a look at this answer.

https file transfer in java

I need to transfer a file between two computers using https protocol using a java code. I have no idea where to start at. Is transfer using socket the only way ? Do I necessarily need to have a code running on the server and one on the client ?
If you already have https server (apache, IIS...) on the machine you want to download from than you will need only the client. Unless your requirement is to write code for both server AND client.
On a general note: YES, in order to transfer file(s) between 2 computers over https you need BOTH server and client.

Resources