Solved

How do I read binary data as text?

Posted on 2004-09-20
6
153 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 86
Tab names are off by one 5 54
unable to delete all specified values regedit 38 416
mapBully challenge 6 134
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

777 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