Solved

How do I read binary data as text?

Posted on 2004-09-20
6
150 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now