Proper way of sending data contained in csv file to server - reactjs

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!

Related

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

Data Catcher on a Server using port monitoring?

I am working on project where we may have 1,000's of pieces of hardware in the field all gathering data and reporting it back to a central server.
To get this data from sensor to database the hardware will be programmed with the server address to send it to. Data will be sent over http port 80. A json file will be encoded and pushed out via Ethernet where the server will intercepting, parsing and storing the data from each device based on device location and data structure.
My question is are there well defined ways to configure what I am calling the catcher? What sort of listening socket solutions should I look at?
I have done similar things in the past where data is sent via ftp to a server where I have a cron job (php script) running to look for new files in the destination folder and parse them into a database. This worked for 1 device but I want to do 1,000's.
Thoughts?

sending data through emails between different sql servers

I have a sql server external to our organisation that sends automated emails with a few basics pieces of data to a staff members mail box.
It's then manually transcribed into a csv file which is imported through ssis into our sql server.
Is there a way to directly send the email to our SQL server so it can process the data automatically ?
I have no control over the external servers setup or output.
“Is there a way to directly send the email to our SQL server so it can process the data automatically?” – nopes. There is no default supported way to do this. You would need to create a custom application that will
Check the mailbox
Parse the results
Insert results into database
The application doesn’t have to be on the sever itself but it needs to be able to connect to it of course.

which is better for sending contact to server WBXML or VCARD?

We are generating WBXML file containing the phone contact and want to send to server.How we send to server and decode WBXML file at server side.Actually i have to send phone contact to server using sync-ml protocol and don't want to use v-card(.vcf file).I think if we send WBXML file to server and server decode that file and save it.The WBXML file contain all phone contact while if we use v-card we have to generate particular vcf file for every contact.Which is better option for sync, sending WBXML file or vcf file ? we have to implement in c , windows .
If you are hitting Microsoft Exchange Server that go for WBXML. By default EAS use WBXML.

How to download a file from server using smartgwt?

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

Resources