how to transfer binary data from client to server

A

Adrian Chen

I'am a beginner in ASP.NET, now I have a simple problem, I suppose, for you
but difficult for me.

I have a device connected with a client machine through COM1, now the client
gets binary from it, then how can I transfer them to the server machine
where the data will be stored in Microsoft SQL Server?

I use MSComm control to help me get the data. The point is the data that
serial-port device returns is 256 bytes long and is stored in byte array.The
type of data's corresponding field in database is binary.What would I be
careful of in order not to destroy the structure or content or format of the
data? I am worried that the .net will treat it as the unicode string or
something else and then will change something of the data.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top