Questions tagged [binarystream]
39 questions
1
vote
1 answer
Binary Stream To Uint8Array - JavaScript
I'm receiving the following Binary Stream from an HTTP request:
HTTP REQUEST
Document.get({id: $scope.documentId}, function(stream){
});
Angular Factory
.factory('Document', ['$resource', 'DOCUMENTS_CONFIG',
function($resource,…

Jeremy Wagner
- 485
- 4
- 9
- 19
1
vote
1 answer
Inconsistent file size change while writing bytes from stream to a file
I have a file with size 10124, I am adding a byte array, which has length 4 in the beginning of the file.
After that the file size should become 10128, but as I write it to file, the size decreased to 22 bytes. I don't know where is the…

user3050564
- 29
- 1
- 1
- 5
1
vote
2 answers
Binary stream library in Objective C?
Is there an equivalent in Objective C to C#'s BinaryReader and BinaryWriter? For example, a BinaryReader would take an NSData* object (or a generalised stream), and would have methods such as -(uint32_t)readUnsignedInt, -(double)readDouble, etc. A…

Vladimir Gritsenko
- 1,669
- 11
- 25
1
vote
1 answer
How can I efficiently stream large data from SQL Server 2008 to a web browser?
I'm using C# and ASP.NET MVC 3. Currently, I'm taking a large set of data from SQL Server, adding it into a StringBuilder, and then using System.Text.ASCIIEncoding to convert the StringBuilder object to a byte[] array.
I then send the byte[] array…

TheDude
- 1,421
- 4
- 29
- 54
1
vote
2 answers
Are there equivalent classes or functions to DataInputStream in Java for the iPhone to read binary information
Java provides classes DataInputStream and DataOutputStream to read/write binary data (as bytes) in a structured way like DataInputStream.readInt()/readLong()/read(byte[]) from a byte stream; likewise for the DataOutputStream.
Are there equivalent…

Prabhu R
- 13,836
- 21
- 78
- 112
1
vote
1 answer
Is it possible to download a binary file from JSP?
I think is it quite possible, but I'm not sure.
I don't have the possibility to use servlet directly, so I'm forced to use JSP ( long history, short time, you don't want to hear )
So I think something like the following will do:
// PSEUDO-CODE:
//…

OscarRyz
- 196,001
- 113
- 385
- 569
0
votes
0 answers
How to provide a single binary TCP stream to many clients?
I have a receiver, which provides a binary stream output on port 3001. But only one client can connect at the same time.
E.g.
With first netcat IP-ADDRESS 3001 I get binary data. If I start the second one parallel, I get "Port already in use". I…

ds14
- 1
- 1
0
votes
0 answers
How do I unpack big-endian data from a binary string in Javascript?
I need solution relavant answer of the function of php unpack("N*",$data);
return An array

Tazul Islam
- 1
- 1
0
votes
1 answer
Converting PDF to Binary Stream in GAS for MS Graph API
I am fetching a PDF - getPDF() - to then upload to a Sharepoint Document Library. The following code fetches the PDF and creates a file called 'filename.pdf', however the file cannot be displayed presumably because the incorrect data is being…

redditor
- 4,196
- 1
- 19
- 40
0
votes
1 answer
Not able to Decompress the byte array of new secure QR code of Aadhar
I am trying to decompress the byte array using GZipStream but getting error of "Found invalid data while decoding."
// getting aadhaar sample qr code data from
// https://uidai.gov.in/images/resource/User_manulal_QR_Code_15032019.pdf
static void…

Paresh
- 1
- 3
0
votes
1 answer
Can not save binary using setBinaryStream to postgreSQL using java prepared statement
I have code to save binary to PostgreSQL, I am using JDK 1.5. but I got error..
And after I print the insert statement, then I try in my postgresql console, something error like this image:
File file = new File("E:\\myimage.gif");
FileInputStream…

Ruslan Wahyudi
- 67
- 1
- 6
0
votes
2 answers
IOUtils.toByteArray is returning empty byte array
I am new to Java development so apologies in advance if I am asking something stupid.
I am trying to retrieve an image and it's thumbnail from sql database.
I get data from ResultSet in BinaryStream format and then convert it to byte[].
For…

Umair Aamir
- 1,624
- 16
- 26
0
votes
3 answers
Migrate FileReader ReadAsBinaryString() to ReadAsArrayBuffer() or ReadAsText()
I realize that the new Mozilla Firefox return allocation size overflow (on FileReader.ReadAsBinaryString()) when the file bigger than 200MB (something like that).
Here's some of my code on test for client web browser:
function upload(fileInputId,…

Mr Hery
- 829
- 1
- 7
- 25
0
votes
1 answer
Reading an Excel File using BinaryStream reader Without using Microsoft Office DLL
I'm trying to read an excel file from the input Stream.
I want to read line by line and save the column information from Excel to Database.
I'm unable to read the file, Can any one help me to figure out what Im missing.
Here is the code below.
…

KNC
- 94
- 5
0
votes
1 answer
Display images in Carousel item
I'm working with ADF and need to display images in a Carousel. Have written the following code in servlet, but on page load it assign the value "weblogic.jdbc.wrapper.Blob_oracle_sql_BLOB@xxx
" (xxx - some alpha numeric value) to the blob object if…

pankti
- 195
- 2
- 14