• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 170
  • Last Modified:

How do I read binary data as text?

Hi All,

I was wondering how I could go about reading a binary file and coverting it to text so I can send it through TCP/IP.  I would like to be able to send executables, word documents etc. to the server and vice versa.  Currently, I can only send text.  Is this the best way to do this?  Does anyone have a method to send binary data through TCP/IP or read a binary file into a string?

Thanks in advance for your help.
0
StanChart
Asked:
StanChart
  • 3
  • 2
1 Solution
 
jkrCommented:
You can always send binary data over a socket connection (well, FTP does it :o) - all you need to do is adding a minor protocol overhead telling the receiver how much data is to follow.
0
 
StanChartAuthor Commented:
Thanks Jaime!
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jkrCommented:
OK, increase your transfer volume by one third if you want :o)
0
 
StanChartAuthor Commented:
jkr, do you have any other solutions?

Thanks
0
 
jkrCommented:
Did you miss that comment?

Comment from jkr
Date: 09/20/2004
 Your Comment  


You can always send binary data over a socket connection (well, FTP does it :o) - all you need to do is adding a minor protocol overhead telling the receiver how much data is to follow
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now