Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How do I read binary data as text?

Posted on 2004-09-20
6
Medium Priority
?
165 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 1000 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
Industry Leaders: 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!

 
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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Suggested Courses

609 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