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 202725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:18:54+00:00 2026-05-11T17:18:54+00:00

Suppose I have any data stored in bytes. For example: 0110001100010101100101110101101 How can I

  • 0

Suppose I have any data stored in bytes. For example:

0110001100010101100101110101101

How can I store it as printable text? The obvious way would be to convert every 0 to the character ‘0’ and every 1 to the character ‘1’. In fact this is what I’m currently doing. I’d like to know how I could pack them more tightly, without losing information.

I thought of converting bits in groups of eight to ASCII, but some bit combinations are not
accepted in that format. Any other ideas?

  • 1 1 Answer
  • 2 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-11T17:18:54+00:00Added an answer on May 11, 2026 at 5:18 pm

    What about an encoding that only uses “safe” characters like base64?
    http://en.wikipedia.org/wiki/Base64

    EDIT: That is assuming that you want to safely store the data in text files and such?

    In Python 2.x, strings should be fine (Python doesn’t use null terminated strings, so don’t worry about that).

    Else in 3.x check out the bytes and bytearray objects.
    http://docs.python.org/3.0/library/stdtypes.html#bytes-methods

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

Sidebar

Related Questions

Suppose I have a Singleton class (any class can get the instance): class data
Suppose I have some data stored in a container of unique_ptr s: struct MyData
suppose i have xml data stored in string variable. so when i am trying
Suppose I have any image(say passport type images where the background will be same
Suppose we have the name written in any none-latin letters - languages, like Arabic,
Suppose I have a large list of words. For an example: >>> with open('/usr/share/dict/words')
Suppose I have a application which fetch data from network and then showing those
Suppose that I have a huge SQLite file (say, 500[MB]) stored in Amazon S3
Do I have a way to retrieve post data submitted via HTML form? Particularily
Can you share your thoughts how would you implement data versioning in PostgreSQL. (I've

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.