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

C# binary writer ushort bytes order

I have a server side app written in D and my client app is written in C#. I use BinaryWriter for communication between them but I have a problem with the byte order. Actually the order of bytes is not the same, example : C# Client: MemoryStream ms =…
Adwelean
  • 47
  • 11
0
votes
1 answer

IOS send data to server

I'm trying to send a image from mydevice to server use Socket. I used this code to convert from image to bytes. After that, I sent bytes to server: - (IBAction)btnSend:(id)sender { UIImage *image = [UIImage imageNamed:@"button.png"]; NSData…
user5068763
  • 355
  • 1
  • 3
  • 10
0
votes
0 answers

array of bytes to SQL Server

How To Pass An array of bytes from a c# windows application to SQL server via stored procedure? my code in SQL : INSERT INTO Pers_UserMachine (userID,nbOfTemplates,fingerPrint1,fingerPrint2,fingerChecksum1,fingerChecksum2) VALUES( …
ziad mansour
  • 349
  • 6
  • 25
0
votes
2 answers

Difference between strophe.min.js and strophe.js?

Do we need to include the strophe.min.js also for xmpp file transfer using stream initiation with SOCKS5 Bytestreams? or strophe.js is enough?
0
votes
1 answer

How to display pdf from byte[] stream in browser?

I am using a servlet and passing the http response with the byte[] stream to the browser. I have set response.setContentType("application/pdf"); in my java code but it still display garbage code like :…
0
votes
1 answer

When the tcp slows-start starts?

For instance,the tcp connection is not established yet,after the connection establishment,the slowstarts begins,and the 3rd segment of the handshake already caries the data,so the question is when the slowstart will begin?It will begin with the 1…
Andre Liberty
  • 707
  • 1
  • 9
  • 17
0
votes
0 answers

Hidden Filed Value not maintained in asp.net

I am working in ASP.Net to download the Image and I use the following code: Code: Main Method: protected void btndownload_Click(object sender, EventArgs e) { FlyerBean objFlyerBean = SaveFlyer(); if (objFlyerBean ==…
Nikhil Vasdev
  • 183
  • 1
  • 3
  • 14
0
votes
2 answers

Getting data back from bytes

I am continuously getting data from remote bluetooth device which I am storing in a buffer readBuf. I copy this readBuf to buf. System.arraycopy(readBuf, 0, buf, 0, readBuf.length); Now my buf contains data such that - buf[0] == 0x7D buf[1] ==…
sjain
  • 23,126
  • 28
  • 107
  • 185
0
votes
1 answer

Embed datafile in java code

I have a dictionary file that is being used for word matching, the java code is to be submitted online and get executed.(for a online coding competition) How would I be able to use the dictionary data file, while my program executes online. could it…
aman
  • 1,875
  • 4
  • 18
  • 27
0
votes
1 answer

Byte() to unsigned integer in .NET

I have been trying my hand at handling packets and bytes for the first time, and I have not been able to obtain the packet length correctly so far after many different techniques. Code: Public Shared Sub Client(packet As Packet) …
Matt
  • 170
  • 1
  • 2
  • 15
0
votes
1 answer

Reading from a file written to using a byte stream

So I've written a series of Integer values between 0 and 100000 into a text file using a byte stream, to ensure that they have been stored in the correct format I'm trying to use Input Stream to view the numbers. I've tried several ways, however…
user3352349
  • 177
  • 2
  • 4
  • 16
0
votes
2 answers

Writing to a file using a byte stream

I'm trying to write a series of 10000 random integers to a text file using a byte stream, however once I open the text file up it has a collection of random characters which seemingly have little to do with the integer values I want to be shown. I'm…
user3352349
  • 177
  • 2
  • 4
  • 16
-1
votes
2 answers

Is byte stream encodes byte to characters or only operates on bytes?

We have byte and character stream, If you read some examples from internet you can find that byte stream only operates on bytes and nothing more. Once i read that both streams encodes bytes to characters depending on encoding, like if it’s byte…
-1
votes
1 answer

TypeError: Type bytes4 is not implicitly convertible to expected type bytes memory

Please help I am quite confused since I was following a course online and i've double checked everything I can and compare his code to mine yet I have an error and he doesn't. please help. :) pragma solidity ^0.8.7; interface IERC165 { // this…
Koruma
  • 9
  • 6
-1
votes
2 answers

How do I create and save an image from a byte stream in c++?

I am working in c++ trying to create an image and save it to a given directory. I don't care what type of image file it is (PNG, jpeg, bitmap, etc.), I just want it to be viewable in Windows 10. The data stream is in the following form:…
BeanKing
  • 11
  • 2
1 2 3
11
12