Questions tagged [binaryfiles]

A binary file is a computer file which may contain any type of data, encoded in binary form for computer storage and processing purposes.

A binary file is a computer file that is not a text file. It may contain any type of data, encoded in binary form for computer storage and processing purposes.

Many binary file formats contain parts that can be interpreted as text. for example, some computer document files, word file, office files, contain the text of the document but also contain formatting information in binary form.

Source: Wikipedia (Binary file)

2897 questions
1
vote
1 answer

Determine if file is binary or text

Is there a way to determine if a file is a binary or text file using the the File Management functions or MFC? In the File Management functions, GetFileType doesn't seem to distinguish between binary and text files. Same with the dwFileAttributes…
JHowzer
  • 3,684
  • 4
  • 30
  • 36
1
vote
3 answers

java save binary code to a file

I'm retrieving a picture file as binary code through ajax, then javascript passes it to java on android and android is getting the binary code but I can't make it save it... I have tried many diiferent ways and nothing works. the code on java so far…
user1342645
  • 655
  • 3
  • 8
  • 13
1
vote
1 answer

Format/encoding of this binary data file

I'm attempting to write a program that integrates with Advent Axys, software for financial planners and the like. The product's site is here: http://www.advent.com/solutions/asset-managers-software/axys-platform I need to write new entries into the…
1
vote
1 answer

Rails Ziping files - reading binary data

I'm using rubyzip library for zipping files. But I encounter problems. I try: Zip::ZipOutputStream.open('c:/sites/efiling2/test.zip') do |zos| zos.put_next_entry("test.rtf") zos.write IO.read('c:/sites/efiling2/test.rtf') …
Lesha Pipiev
  • 3,251
  • 4
  • 31
  • 65
1
vote
2 answers

C++ Binary File method is removing content from the file?

I have an assignment where I am writing input on various things (in the form of structs) and then writing to a binary file. I have to be able to both read and write to the file while the program is open. One of the methods needs to print out all of…
Nate
  • 925
  • 2
  • 12
  • 23
1
vote
1 answer

What DataType should be used to hold a binary file (eg. Excel file) in 1 parameter of a particular WCF contract?

I want to write a WCF contract that transports a whole binary file object (eg. Excel file) from the client to the server. What DataType should I use for the contract parameter that will hold this binary object?
Sam
  • 2,663
  • 10
  • 41
  • 60
1
vote
1 answer

Executing binary files with a shebang

I created a simple program that takes the path of a directory as an input, creates an archive of that directory (converting it into a single file), adds a shebang to that file (so that the contents of the file can be easily extracted), and writes…
Aadit M Shah
  • 72,912
  • 30
  • 168
  • 299
1
vote
1 answer

Striping symbols from a binary (windows)

Our company creates an application that runs both on Mac and Windows. In Mac, we're using the 'strip' command to remove the symbols from the binary for security reasons and also for lightening the file size. Is there a parallel command that we can…
kambi
  • 3,291
  • 10
  • 37
  • 58
1
vote
3 answers

read different data types in line c++

I'm starting in c++ and I need to read a binary file. I know the structure of file, i.e, each file line is composed…
luiserta
  • 43
  • 1
  • 2
  • 8
0
votes
2 answers

My program continously loop after reading nodes into linked list and displays only one node repeatedly

I created a Linked list in a C++ program that writes the nodes to a binary file and read them back to the linked list. However when displaying back the list the program continuously displays only one node (continuous loop). Here's the code: #ifndef…
Hue
  • 413
  • 1
  • 3
  • 21
0
votes
1 answer

Saving DLL file resources to a database

what is the advantage and disadvantage in saving the resource dll into the database. is the code in it wont change or corrupt?
illumi
  • 458
  • 1
  • 14
  • 32
0
votes
1 answer

Binary Files and writing Structures to them

Trying to write a function that will write my structure array to a binary file. I thought I was able to copy it over as a complete unit one array at a time but it's not working for me. Do I need to write each individual sub-entity or is there a way…
Chef Flambe
  • 885
  • 2
  • 15
  • 35
0
votes
1 answer

GCC version in binary files

When I cat a binary file like this cat /bin/cat, I see that something like this is included in binary almost every time; GCC: (GNU) 4.6.3 And some other things like, .gnu.version.gnu.version_r or gnu.build-id.gnu.hash . Is there any reasons why…
yasar
  • 13,158
  • 28
  • 95
  • 160
0
votes
2 answers

Eliminate Data from a Binary File

I have a BinaryReader/BinaryWriter with a length of 1000 bytes, each record is 50 bytes. How can I eliminate the records at position 350 to 550 and in the end keep the remaining 800 bytes in my file?
fma3
  • 571
  • 2
  • 5
  • 10
0
votes
3 answers

Save document in SQL Server database

I have a C# / SQL Server project. and database is reachable from different places (no lan between that 3 places) and data in database is important so I am taking recovery or my database every hour for last 30 days. Documents which I want to save…
Rapunzo
  • 966
  • 5
  • 21
  • 42