Solved

Parsing a text file.

Posted on 2012-03-15
4
240 Views
Last Modified: 2012-04-04
I apologize in advance for this question.  I'm sure you get it constantly and you probably cringed when you read the question title.

I am working with a Silverlight application (C#).  My application gathers information from my clients, quite a few server-side calculations are done, and then the analysis is delivered back to my clients.

My clients upload raw data files (usually fixed width or delimited text files) with vast amounts of information in them, most of which I don't need, to my server.  There I parse the files and send the data back to the client to be displayed in a datagrid for validation purposes, essentially making sure the files are mapped appropriately.

I am looking for a way to eliminate the trip to the server before data validation.  I would like to handle the parsing of the text file client side.

For what it is worth, I have access to ComponentOne's C1Data product for Silverlight, which basically gives me a subset of the System.Data namespace.

Thank you very much for your time.
0
Comment
Question by:CharlesMartel732
  • 2
4 Comments
 
LVL 18

Expert Comment

by:DarrenD
ID: 37737900
Hi,

I am just wondering why you feel the need to validate this client-side.

Personally, I would keep this on the server side for a couple of reasons
1) because the server does all the work
2) if you changed from silverlight to web pages or winclient you would not have to re-wite the client code

These are just two and I'm sure there are more....

Obviously if the files are large then this may impact parsing as you have the overhead of uploading the file first. But I would still prefer parsing on the server.

This is my two cents....

Cheers,

Darren
0
 

Author Comment

by:CharlesMartel732
ID: 37738408
Thanks for taking the time to reply.

The vast majority of the time clients are using data files that contain sensitive information and they don't have the ability to remove that information themselves.  

Even though I can take precautions to secure the data when it is transmitted to my end, I think it will give them peace of mind if I can remove all unnecessary, and sometimes sensitive, information client-side.

For what it is worth, I am not an expert in these matters so if you think I am off-base here, your comments would be very much appreciated.

Thank you.
0
 
LVL 18

Accepted Solution

by:
DarrenD earned 500 total points
ID: 37738574
Hi again,

Where security is concerned, it will be a case of keeping the client happy. If they do not wish to have something transmitted that you will have to take precautions on the client side.

As you said you could secure the data both before transmission and during transmission, however, if the client does not want it sent over the wire for whatever reasons then you have little choice but to remove this before it is sent.

Hope this helps,

Darren
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now