Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 729777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:50:12+00:00 2026-05-14T06:50:12+00:00

does anyone have a good definition for what a binary protocol is? and what

  • 0

does anyone have a good definition for what a binary protocol is? and what is a text protocol actually? how do these compare to each other in terms of bits sent on the wire?

here’s what wikipedia says about binary protocols:

A binary protocol is a protocol which is intended or expected to be read by a machine rather than a human being (http://en.wikipedia.org/wiki/Binary_protocol)

oh come on!

to be more clear, if I have jpg file how would that be sent through a binary protocol and how through a text one? in terms of bits/bytes sent on the wire of course.

at the end of the day if you look at a string it is itself an array of bytes so the distinction between the 2 protocols should rest on what actual data is being sent on the wire. in other words, on how the initial data (jpg file) is encoded before being sent.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T06:50:12+00:00Added an answer on May 14, 2026 at 6:50 am

    Binary protocol versus text protocol isn’t really about how binary blobs are encoded. The difference is really whether the protocol is oriented around data structures or around text strings. Let me give an example: HTTP. HTTP is a text protocol, even though when it sends a jpeg image, it just sends the raw bytes, not a text encoding of them.

    But what makes HTTP a text protocol is that the exchange to get the jpg looks like this:

    Request:

    GET /files/image.jpg HTTP/1.0
    Connection: Keep-Alive
    User-Agent: Mozilla/4.01 [en] (Win95; I)
    Host: hal.etc.com.au
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
    Accept-Language: en
    Accept-Charset: iso-8859-1,*,utf-8
    

    Response:

    HTTP/1.1 200 OK
    Date: Mon, 19 Jan 1998 03:52:51 GMT
    Server: Apache/1.2.4
    Last-Modified: Wed, 08 Oct 1997 04:15:24 GMT
    ETag: "61a85-17c3-343b08dc"
    Content-Length: 60830
    Accept-Ranges: bytes
    Keep-Alive: timeout=15, max=100
    Connection: Keep-Alive
    Content-Type: image/jpeg
    
    <binary data goes here>
    

    Note that this could very easily have been packed much more tightly into a structure that would look (in C) something like

    Request:

    struct request {
      int requestType;
      int protocolVersion;
      char path[1024];
      char user_agent[1024];
      char host[1024];
      long int accept_bitmask;
      long int language_bitmask;
      long int charset_bitmask;
    };
    

    Response:

    struct response {
      int responseType;
      int protocolVersion;
      time_t date;
      char host[1024];
      time_t modification_date;
      char etag[1024];
      size_t content_length;
      int keepalive_timeout;
      int keepalive_max;
      int connection_type;
      char content_type[1024];
      char data[];
    };
    

    Where the field names would not have to be transmitted at all, and where, for example, the responseType in the response structure is an int with the value 200 instead of three characters ‘2’ ‘0’ ‘0’. That’s what a text based protocol is: one that is designed to be communicated as a flat stream of (usually human-readable) lines of text, rather than as structured data of many different types.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

DOes anyone have any good information with regards to when to log, I was
Does anyone have a good VBA way (or perhaps there is an MS Word
Does anyone have a good way of deleting duplicate transactions (same date, amount, biller,
Does anyone have any good advice or experience on how to create an engine
Does anyone have a good Drupal upgrade strategy for an install that is in
Does anyone have any good samples, resources, pointers etc. for C# Silverlight with RIA
Does anyone have a good explanation why the ? extends syntax has to be
Does anyone have any good sources of information of using NHibernate with Sql Azure
Does anyone have a good algorithm to calculate what date Good Friday falls on
Does anyone have a good tutorial on Java + Cucumber integration? I've begun using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.