Linked Questions

0 votes
1 answer
516 views

I am beginner with python. ASCII files I can create, but with binary it seems more difficult to get in. The writing of binary files got me confused, when I have not been able to find simplest code ...
user avatar
2 votes
2 answers
6k views

Say I have 8 bits 01010101 which equals the byte u But I what I actually have is 8 binaries(well, integers). How do I convert these 8 binaries to the corresponding byte? I'm trying byte = int(...
Meteorite's user avatar
  • 374
0 votes
3 answers
4k views

I'm currently working on a password storage program in Python, though C would likely be faster. I've been trying for the past hour or so to find a way to store a bytes object in a CSV file. I'm ...
Xarvveron's user avatar
0 votes
1 answer
4k views

I need to write text, then binary data to a file. For example, I would like to write the file with contents: BESTFORMAT NUMLINES 42 FIELDS FOO BAR SPAM DATATYPES INT32 FLOAT64 FLOAT64 FILETYPE BINARY ...
Epic Wink's user avatar
  • 865
3 votes
1 answer
2k views

As a part of a bigger project, I want to save a sequence of bits in a file so that the file is as small as possible. I'm not talking about compression, I want to save the sequence as it is but using ...
Julen Cestero's user avatar
2 votes
1 answer
2k views

I need to create a lookup table that can be used in an application where speed and efficiency are extremely important. The table will store time values, which are logarithmically distributed so that ...
jasper's user avatar
  • 193
2 votes
2 answers
2k views

I want to store foto data in file in python. But I get some strange characters in my file so this files does not open properly. What I'm trying to do is remove this data from my array before save it ...
JNeto06's user avatar
  • 25
0 votes
2 answers
1k views

I have a very long list of large numbers in Python in the form [429996711.2753906, 106845465.30664062, 47285925.673828125, 373352395.4082031, 934463030.1191406, 53994183.962890625, 455503649.6542969, ...
user918212's user avatar
2 votes
1 answer
995 views

Hello i want save web page's source codes to any any text file and saving it C:\ folder. I tried get web page's source with this code: html = driver.page_source print(html) How to save page source to ...
CodexSC's user avatar
  • 31
1 vote
1 answer
965 views

I'm cusomizing logger module to add a few colors. Suppose I directed stream to a file as well. How can I read that file later? as in, which software shoud I use to read it properly as it seems to ...
Alex Deft's user avatar
  • 2,887
1 vote
1 answer
865 views

I have read a lot of essays and articles about "Compressing Image Algorithm". There are a lot of algorithms but I can only understand some of them because I'm a student and I haven't gone to ...
mobin she84's user avatar
2 votes
1 answer
459 views

I am uploading a .rpm file from my Django UI. I am able to upload the file successfully at the desired location.. Problem: There is an increase in file size after uploading, and due to this I am ...
Vikas Verma's user avatar
2 votes
1 answer
335 views

I have an image saved as a bytes array in C#. Below would be an example of how you could create such an array: byte[] image_bytes= new byte[100] {137, 80, 78, 71, ..., 130}; Note: The above is a ...
Carl H's user avatar
  • 740
0 votes
1 answer
90 views

I need to write a python script that takes an existing file split into columns and rows, reads in each column, and outputs each column as a row in the output file. The file is a matrices of numbers, ...
user3712957's user avatar
1 vote
0 answers
72 views

I am getting a json array which contains bytes of an image. This json array in embedded in json object. When checking the type of elements in this json array it is showing class 'str'. I want to save ...
Sandeep Anjara's user avatar