Questions tagged [binarystream]
39 questions
5
votes
2 answers
How to create a binary stream (not a file) in Common Lisp?
I have a function which output some binary data to a stream. But the stream is abstract, which means the stream can be a file stream, or some other streams. But the stream must be a binary stream which support write-byte function. I searched but not…

kevin lynx
- 785
- 9
- 17
5
votes
1 answer
setting blob to null using PreparedStatement
I am creating webapplication using JSF2.0 where in mysql, I am storing images using datatype as MEDIUMBLOB.
To insert values, I am using PreparedStatement as shown below.
PreparedStatement psmnt = con.prepareStatement("INSERT INTO sketchesSG002003…

Fahim Parkar
- 30,974
- 45
- 160
- 276
4
votes
3 answers
BinaryReader - Reading a Single " BIT "?
Case :
Again trying to capture packets through my NIC,
I have developed 2 Extensions to use in capturing variable number of bits
public static string ReadBits ( this BinaryReader Key , int Value )
{
BitArray _BitArray = new…

Ahmed Ghoneim
- 6,834
- 9
- 49
- 79
4
votes
2 answers
binary serialization, adding a new field to class - will it work?
I have a client and a server application which communicate over .NET 2.0 Remoting using binary serialization.
A small change has been made to one of the data transfer object's interface and the implementing class, well, an array of strings field…

Andrew
- 295
- 4
- 10
4
votes
2 answers
C# BinaryReader Cannot access a closed file
Controller:
private readonly Dictionary streams;
public ActionResult Upload(string qqfile, string id)
{
string filename;
try
{
Stream stream =…

ShaneKm
- 20,823
- 43
- 167
- 296
3
votes
2 answers
How to consume MTOM SOAP web service in node.js?
I need to download or process a file from a soap based web service in node.js.
can someone suggest me on how to handle this in node.js
I tried with 'node-soap' or 'soap' NPM module. it worked for normal soap web service. But, not for binary steam or…

Veer R
- 129
- 1
- 9
3
votes
2 answers
Retrieving file from bytea in PostgreSQL using java
Hi I'm using the below code to retrieve the file from the postgresql bytea using java,
but inside the file I'm getting numbers like 314530413142313141
File file = new File("c:/test.doc");
FileOutputStream fos = new…

Sathish
- 4,403
- 7
- 31
- 53
2
votes
1 answer
How to read an unknown number of bytes from an input stream that may contain null characters?
I'm having some trouble reading an unknown amount of bytes (raw data, may contain NULLs) from a device using c in Linux. How can I read the device for "as long as it's ready to be read"? (hopefully without reading 1 byte at a time).

LinkOfTime
- 77
- 5
1
vote
0 answers
overflow error when reading file from external drive
I'm seeing an Overflow Error when trying to read a binary stream from an external SSD:
with open(self.path, "rb") as input_file:
input_file.seek(offset)
data = input_file.read(chunk_bytes)
the read method call sporadically results in the…

tldr
- 11,924
- 15
- 75
- 120
1
vote
1 answer
search for a binary string in binary file with python
Hi all am searching for a binary string in binary file using the python
my binary file looks like a as follows.
I want to find the bold text below.
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00…

Madhu
- 15
- 8
1
vote
1 answer
How to use streams to create binary data in nodejs?
I have a requirement to read a file from drive and pass it on to another API. The target API accepts binary data (like the data read using fs.readFile())
Following is the drive api code
var fileId = '0BwwA4oUTeiV1UVNwOHItT0xfa2M';
var dest =…

Pavan Andhukuri
- 1,547
- 3
- 23
- 49
1
vote
0 answers
TypeError: string argument without an encoding with binary data
I am receiving a binary stream (over a socket) and converting it to bytearray. After running for about 6hrs (and sometimes even after few minutes) I am getting the following error:
TypeError: string argument without an encoding
on the line:
str =…

Arpit
- 4,259
- 10
- 38
- 43
1
vote
1 answer
Read Binary Data over TCP with Boost::Asio
My program receives binary data over a TCP-Connection. The connection is established using the boost::asio library. After reading the stream I need to return the received data as char*-Array. This is what I've got so far:
char* read()
{
…

Bobface
- 2,782
- 4
- 24
- 61
1
vote
1 answer
How to send or stream base64 images with AJAX to Node.js Express server?
I am new to working with images in web development. We have a Node.js Express server that will run on Heroku and uses Cloudinary to store images.
Ideally we could save images directly to Cloudinary, but I am not sure if that's possible and we are…

Alexander Mills
- 90,741
- 139
- 482
- 817
1
vote
1 answer
Search And Replace within A Binary Stream
I am trying to change a value in a bytestream array. I am looking for the Null value, and I want to change it to a space. When I try to access the array I get an error message "Type Mismatch".
My VBS Code:
Const adTypeBinary = 1
Const…

Ofer B
- 369
- 2
- 5
- 14