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
0
votes
1 answer

Detect H.264 frame type in an mp4 container

Assume an H.264-encoded video stream is stored in an mp4 container. What is a straightforward way of detecting frame types and associating them with parts of the stored data? I can extract the frame types using the below command. I would like to…
Alexander
  • 921
  • 3
  • 12
  • 31
0
votes
1 answer

Open bytes stream as image file to access exif. 'UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte'

I need to download an image when it arrives in Dropbox and upload to Azure Storage. I am doing this using a Kubeless serverless function which is triggered by Dropbox's push notification. This download and upload is working fine. However, I'd like…
0
votes
1 answer

Writing OLE compound files with python 3

I have two bytestream, these data should be dump in a compound OLE file both together in a container. I just checked that there are some third party libraries to do it, but I would like to do it with pywin32, I have this library in my project and I…
Jmm86
  • 103
  • 8
0
votes
2 answers

Octave: How can I plot unknown length serial data using the instrument-control package?

I found this example which sorta works... but it's not perfect. For starters it plots 10 at once but that's an easy fix. Problem is that it does not dynamically get line endings and instead relies on byte count. pkg load instrument-control s1 =…
RootInit
  • 401
  • 1
  • 4
  • 4
0
votes
0 answers

Python socket not receiving bytes of data from server

The following is my code for server and client. The client receives the first 4 bytes telling the length of the data block, which is then received by the client from the server. Once received, it performs certain calculations and writes it into the…
Newbie
  • 101
  • 1
  • 2
  • 11
0
votes
0 answers

How do FileInputStream and FileOutputStream hold internal state?

Looking at this standard code except for copying bytes, I'd like to know, how the streams hold their internal state. InputStream in = new FileInputStream(...); InputStream out = new FileOutputStream(...); int readLength = 0; byte[] buf = new…
Ondrej Sotolar
  • 1,352
  • 1
  • 19
  • 29
0
votes
0 answers

C# byte number after File Transfer Is not right, it's bigger

I have a .jpg file of 10,174,706 bytes on the server and after i send it to the client i get 10,190,848 bytes as a multiple of 16 * 1024 (that what i used in CopyTo function for streams) which is more. No problem for a jpg file but i want to send a…
0
votes
1 answer

Python : How to convert a CSV file stored in Byte stream to a List?

I am trying to get a csv file from Azure Data Lake Gen2, and then perform some operations on each row. However, the requirement is, not to download the file to a physical location. And hence, I am using file_client.download_File().readAll() to get…
0
votes
1 answer

Download link is undefined when getting bytes stream in Angular

I'm trying to generate a PDF file from an endpoint, the showPDF function has an ID parameter of the Product and generate a PDF as an output. I've tried to declare a Promise to get the bytes stream from that endpoint: showPdf(rowData: Product)…
0
votes
1 answer

What's the best way to reassemble bytes sent from client to server?

What's the best way to stream bytes from client to server in chunks of determined size? Right now I'm encoding an audio file with base64, then compressing it with zlib and sending through the socket connection. My problem is trying to rebuild the…
vaughan is god
  • 162
  • 1
  • 13
0
votes
2 answers

Render byte array as pdf using Javascript inside iframe Internet Explorer/Edge

I have a byte array(which was converted from an original PDF file) returned from an http post method. My requirement is to render the original PDF inside an iframe , i use angular 1.x with IE/Edge browser.
0
votes
2 answers

H264 packets from p2p wifi spy camera

I have 2 p2p wifi spy cameras modules. They work inside local LAN but not outside because there is problem with the servers they used. They work via the BVCAM for Android or similar for windows and IOS but nothing for Linux. I try to understand the…
lakis
  • 21
  • 5
0
votes
1 answer

How to correctly save stream of bytes to file in Java/Scala? How to fix wrongly saved stream?

Story While conducting an experiment I was saving a stream of random Bytes generated by a hardware RNG device. After the experiment was finished, I realized that the saving method was incorrect. I hope I can find the way how to fix the corrupted…
Luinorn
  • 1
  • 1
0
votes
3 answers

How can I get a variable containing a byte sequence of several fields (unicode character + 32 bits integer + unicode string)

I want to get a variable containing a byte sequence of several fields (they will be later be transmitted via socket). The byte sequence will include the following three fields: Character SOH (ANSI code 0x01) 32bits integer Unicode string…
M.E.
  • 4,955
  • 4
  • 49
  • 128
0
votes
0 answers

Getting Null Byte using io.StringIO

I have the below code stream = io.StringIO(csv_file.stream.read().decode('utf-8-sig'), newline=None) // error is here reader = csv.DictReader(stream) list_of_entity = [] line_no, prev_len = 1, 0, for line in reader: While executing the above…