Questions tagged [bytestream]

A bytestream is a series of bytes.

Formally, a byte stream is a certain abstraction, a communication channel down which one entity can send a sequence of bytes to the entity on the other end. Such channel is often bidirectional, but sometimes unidirectional. In almost all instances, the channel has the property that it is reliable; i.e. exactly the same bytes emerge, in exactly the same order, at the other end.

Less formally, one can think of it as a conduit between the two entities; one entity can insert bytes into the conduit, and the other entity then receives them. This conduit can be ephemeral or persistent.

See more:

173 questions
-1
votes
1 answer

Printing Unicode Characters in Java - PrintWriter

I am developing a card game in Java and I am currently using a command line to interact and display outputs of the game. I have been representing each card suit with A letter (H - Hearts, S - Spades etc.) I came up with the idea of using the Unicode…
-1
votes
2 answers

converting decimal to actual bytes

I have a task which is to extract and analyse a payload. the payload is stored in the array below: byte[] source = new byte[449] { 252, 72, 131, 228, 240, 232, 204, 0, 0, 0, 65, 81, 65, 80, …
friya67
  • 1
  • 1
-1
votes
1 answer

Read File from server and upload that to Anonfile

So i m trying to read a video from a server and then store that as bytes and then upload that file on Anonfile. But i dont want to save that file on local storage. I'm using BytesIO to read that file as binary and able to read. But when i try to…
DeadUser
  • 13
  • 2
-1
votes
1 answer

Unpack hex-encoded NSData

on peripheral:didReceiveWriteRequest a CBATTRequest returns hex-encoded NSData via request.value. This is what I have tried // Define struct typedef struct __attribute__((packed)) { UInt8 pktNo; UInt8 ctrlCmd; UInt8 txPowerRequest; …
AnonProgrammer
  • 239
  • 1
  • 11
-1
votes
1 answer

Convert result of File.ReadAllBytes as File object without actually writing it

One Module reads some files using File.ReadAllBytes("path") and stores the result in a database table. Later I take the result from the table and normaly use File.WriteAllBytes("outputPath", binary.Data) to write the file back. Now I have to…
Shintaro
  • 69
  • 7
-1
votes
1 answer

Why am I losing bytes from my Socket InputStream?

I'm creating a socket based system for communicating between desktop and mobile devices. I'm using a simple protocol for reading and writing data to the streams between devices which ultimately end up as bytes: First 4 bytes represent an integer,…
Detail
  • 785
  • 9
  • 23
-1
votes
1 answer

Insert bytes at the beginning of an existing file without overwriting existing bytes

How can I add bytes to an existing file without: overwriting existing bytes reading the file
-2
votes
1 answer

How do I convert a byte stream to unsigned int 8 in C

I am streaming a video in python via WebSocket, which is a raw bytes stream and appears like this: b'\x00\x00\x00\x01A\x9a \x02\x04\xe1{=z\xf8FMS\xe6\\\x9eMubH\xa7R.1\xd7]F\xea3}\xa9b\x9f\x14n\x12| ....' Now, I am passing these bytes to a C…
Arbaaz
  • 1
  • 2
1 2 3
11
12