binary-data Questions

2

Solved

I am trying to write the binary body of a request to a file and failing. The file is created on server but I am unable to open it. I am getting 'Fatal error: Not a png' on Ubuntu. Here is how I am ...
Gailgaile asked 19/3, 2014 at 12:51

3

Solved

I was wondering if there is a way to load an external binary file as a variable in C through an include or a header file or something of the like. For example, in a project I am currently working ...
Dialyser asked 17/3, 2014 at 13:14

2

Solved

I want to read a binary file in JavaScript that would be gotten through XMLHttpRequest and be able to manipulate that data. From my researching I discovered this method of reading a binary file dat...
Sober asked 9/8, 2011 at 10:24

1

Solved

I want to read the binary data of an image and then save it again to my local disk with JavaScript. I wrote a small demo that shows this use-case. To read the file I use readAsBinaryString from t...
Caboose asked 1/2, 2014 at 17:49

4

Solved

I have binary string String A = "1000000110101110". I want to convert this string into byte array of length 2 in java I have taken the help of this link I have tried to convert it into byte by va...
Oberhausen asked 24/9, 2013 at 7:45

8

Solved

A friend of mine brought up this questiont he other day, he's recently bought a garmin heart rate moniter device which keeps track of his heart rate and allows him to upload his heart rate stats fo...
Yuriyuria asked 22/9, 2008 at 16:18

1

Solved

This question is related to this one. I was having no problems while printing raw binary data from a CGI script in Python 2, for example: #!/usr/bin/env python2 import os if __name__ == '__main_...
Starks asked 13/9, 2013 at 16:25

3

Solved

I am looking for suggestions on the best way to send/receive data from a remote GPRS device, over port 80. Creating a plain TCP socket on a random port works fine, but many carriers only allow por...
Group asked 19/11, 2011 at 18:9

2

Solved

I have been using C# to write a concrete provider implementation for our product for different databases. W/out getting into details, one of the columns is of byte array type (bytea in postgres - d...
Fragonard asked 22/8, 2011 at 17:0

3

UPDATE: Solved I was calling FTPClient.setFileType() before I logged in, causing the FTP server to use the default mode (ASCII) no matter what I set it to. The client, on the other hand, was behav...
Theodoretheodoric asked 30/6, 2010 at 0:41

3

The Data.Binary documentation shows writing an instance by hand. Is there a way around this? I saw here there is another library, SerTH, which has a (Template Haskell based) deriving mechanism, but...
Twilley asked 3/1, 2012 at 15:39

4

Solved

First of all, I am aware of this question: How do I load binary image data using Javascript and XMLHttpRequest? and specifically best answer therein, http://emilsblog.lerch.org/2009/07/javascri...

2

Solved

My program does the common task of writing binary data to a file, conforming to a certain non-text file format. Since the data I'm writing is not already in existing chunks but instead is put toget...
Kerenkeresan asked 18/3, 2013 at 0:2

3

Solved

I have string which contains null character ie \0. How can I print the whole string in java? String s = new String("abc\u0000def"); System.out.println(s.length()); System.out.println(s); Output...
Idell asked 11/3, 2013 at 11:29

7

What's the best way to version large amounts of binary files, say audio and video files? Git doesn't seem like it's really designed to handle large amounts of binary files. The other issue is that...
African asked 12/11, 2010 at 23:26

7

Solved

I have a binary file that uses sets of 4 chars to form integers that have "meaning". For example, the 4 bytes '0005', which equals 808464437 in integer form. I'd rather represent these in my Java ...
Rodmann asked 22/2, 2013 at 19:36

6

Solved

I have to find a design decision for the following task: I have a SQL Server database and it contains a table of orders. PDF documents will be uploaded by users through a simple file upload from a...
Seabolt asked 27/2, 2010 at 15:29

1

Solved

In Ruby why we need array Packing? How does directive help to do such packing? I ran some code in my console to see what and how directives looks like in Array packing.But the output is closely s...
Tamer asked 12/1, 2013 at 13:48

1

Solved

In my Rails 3 application I have multiple models, and each model is associated with another model. User model has_many :departments accepts_nested_attributes_for :departments Department Model ...

4

Solved

If a DataSet contains a column that is a timestamp or other binary value, its associated DataGridView throws an ArgumentException, when displaying any data in that column. That is, assume you have ...
Fervor asked 8/12, 2009 at 21:8

1

Solved

I'm trying to compile a binary file into a MACH_O object file so that it can be linked it into a dylib. The dylib is written in c/c++. On linux the following command is used: ld -r -b binary -o fo...
Inaudible asked 19/1, 2012 at 8:35

1

Still struggling after lots of tries to read the response of a httprequest that is a binary datastream which will represent an jpg image. edit: the whole thing xmlhttp = false; /*@cc_on@*/ /*@i...
Cleghorn asked 24/5, 2012 at 12:55

1

Solved

I read followed links and other sources, but didn't find answer for my question. Binary data over serial terminal Data gets corrupted during transmission over the serial port I communicate with...
Schumer asked 15/9, 2012 at 13:1

3

Solved

I'm confused as to what the Put monad offers over using Builder directly, in Data.Binary. I read the Binary Generation section of Dealing with Binary data, and it seems to assume that you should us...
Hesson asked 16/7, 2012 at 20:49

1

Solved

What's the best way to go about receiving binary data via HTTP in go? In my case, I'd like to send a zip file to my application's REST API. Examples specific to goweb would be great, but net/http i...
Cabalist asked 30/7, 2012 at 2:57

© 2022 - 2024 — McMap. All rights reserved.