Solved

How do I read binary data as text?

Posted on 2004-09-20
6
154 Views
Last Modified: 2013-11-20
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
Comment
Question by:StanChart
  • 3
  • 2
6 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 250 total points
ID: 12105386
0
 
LVL 86

Expert Comment

by:jkr
ID: 12105569
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
 

Author Comment

by:StanChart
ID: 12136579
Thanks Jaime!
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 86

Expert Comment

by:jkr
ID: 12136669
OK, increase your transfer volume by one third if you want :o)
0
 

Author Comment

by:StanChart
ID: 12137050
jkr, do you have any other solutions?

Thanks
0
 
LVL 86

Expert Comment

by:jkr
ID: 12137331
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
mixString challenge 36 131
windows 10 how make picture as desktop background 2 65
has22 challenge 11 104
Fibonacci challenge 11 132
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

809 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