Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
84 views

I'm building a high-performance image processing pipeline using Node.js worker_threads. I'm transferring large ArrayBuffers between workers using postMessage with the transfer list. In production (...
Alex Mikhailov's user avatar
2 votes
2 answers
281 views

Since TypeScript 5.9 we have (roughly speaking) Uint8Array = Uint8Array<ArrayBufferLike> = Uint8Array<ArrayBuffer | SharedArrayBuffer>. Now I am looking for a clean and idiomatic way to ...
Simon Warta's user avatar
  • 11.5k
0 votes
1 answer
62 views

I am trying to upload json data as a text file to SharePoint with javascripts stingify method using either blob or array buffer, but I keep getting only the first 37kb of the content saved. This is ...
Beruken's user avatar
1 vote
2 answers
236 views

The return value of TextEncoder.encode() is Uint8Array<ArrayBufferLike>. The ArrayBufferLike type includes ArrayBuffer and SharedArrayBuffer. How to know which type of array buffer encode() will ...
aryzing's user avatar
  • 6,001
2 votes
2 answers
362 views

I'm having some trouble loading an audio file in WAV format returned from the backend as a Blob in Angular. I have in my services the following: getFileBlob(uniformName: string, path: string) { ...
Vladyn's user avatar
  • 583
1 vote
2 answers
176 views

How to properly access the elements in data views based on the data type? Consider the following example code: const data = new Uint16Array([7, 12, 100]); const view = new DataView(data.buffer); ...
dubious's user avatar
  • 259
1 vote
1 answer
213 views

My problem lies in a series of audiobuffersource calls and starting. I have successfully implemented pauses in the middle of an audioBuffer by stopping the audioNode and calculating the elapsedTime to ...
Jessicaus's user avatar
4 votes
2 answers
3k views

I'm encountering an error while working on my React Native application. When I attempt to transform the HTML content of a page into a PDF for export and client email, I receive the following error: ...
Marco Chitu's user avatar
0 votes
1 answer
480 views

I'm writing some browser code with a lot of large ArrayBuffers. I noticed the memory consumption is unexpectedly large and I'm not sure why that is. I've never worked with ArrayBuffers before and I ...
n-l-i's user avatar
  • 163
1 vote
0 answers
77 views

There are many options for heap profiling in NodeJS, but I'm having trouble finding anything to profile the memory returned by process.memoryUsage().arrayBuffers. So far the only approach I've found ...
Ralf's user avatar
  • 14.9k
0 votes
2 answers
156 views

In my app (Laravel + Inertia + Vue3) user selects multiple files using input. I need to compress them into zip and upload to server in chunks for further operations. I tried using JSZip library, but ...
Akash Kumar's user avatar
0 votes
1 answer
162 views

I have a CBOR payload containing a MAP with a BYTES field: // simplified testcase: var data = [0xBF, 0x63, 0x72, 0x61, 0x77, 0x58, 0x10, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0xFF, ...
fferri's user avatar
  • 19k
3 votes
1 answer
1k views

I'm trying to generate docx file using the docx javascript library but only on the client side. The generation of new documents works like charm, but I would like to patch a document using the patcher....
rcheetah's user avatar
  • 109
0 votes
0 answers
51 views

I am getting a strange issue with docker. When I use axios / fetch method to get data from an API with that return the arrayBuffer My axios gives error ERR_SOCKET_CONNECTION_TIMEOUT. Same things works ...
Mohit Soni's user avatar
0 votes
0 answers
51 views

You've written logic to convert a file to an ArrayBuffer and process it when the user selects it via a file picker. Initially, you tried to do this using the FileReader API, but you ran into an issue ...
최진명's user avatar
0 votes
1 answer
58 views

I am trying to download a file saved in the server and allow the user to extract it from the front end based on the date selected. The application is built using the codeigniter framework. I am ...
hungry_coder's user avatar
0 votes
1 answer
320 views

I'm want to record audio from browser using MediaRecorder convert the same into AudioBuffer to send it to server. It returns the first chunk as AudioBuffer but for subsequent chunks it is throwing the ...
Farman Ahmed's user avatar
1 vote
1 answer
138 views

I am using a BLE device to read glucose value and get it on my system, but I am stuck on how to parse the encoded value returning from the glucometer characteristics value. for eg: I am getting [27, ...
Shubham Shaw's user avatar
  • 1,015
0 votes
1 answer
338 views

I came across a JPEG parsing function in Node.js that I'm attempting to adapt for use in a browser environment. The original code can be found here. The original code uses Node.js' Buffer class. As i ...
ThomazPom's user avatar
  • 146
0 votes
2 answers
524 views

I am using a BLE device to read temperature and get it on my system, but I am stuck on how to parse the encoded value returning from temperature characteristics value. for eg: I am getting BmsBAP/...
Shubham Shaw's user avatar
  • 1,015
0 votes
1 answer
1k views

I use fetch API to perform HTTP requests. Because the HTTP response body is a binary, I use response.arrayBuffer() method to get the result as bytes. Anyway, this approach doesn't perform well when ...
allevo's user avatar
  • 1,112
0 votes
1 answer
204 views

I am using the ws library in nodejs to create a little cursor lobby with other players. I have successfully implemented using the server to send ArrayBuffers with bit streams to the client, and also ...
Vercte's user avatar
  • 1
0 votes
1 answer
978 views

I want to make a local web page that accept users' pasted image and add to a docx file. To achieve this, I decided to use docxtemplater.js and docxtemplater-image-module-free module, but I can't get ...
Hansen Zhao's user avatar
3 votes
1 answer
278 views

When you initialize an ArrayBuffer with maxByteLength to make it resizeable, are maxByteLength bytes reserved in memory up front so that the ArrayBuffer can grow in contiguous memory space? Or is a ...
comp's user avatar
  • 1,235
0 votes
1 answer
214 views

In following code snippets, I try to transfer an ArrayBuffer from QML to a C++ handler, where it is supposed to get converted into a QByteArray. This is working in QT 6.5.1 but stopped working in 6.5....
Jürgen Lutz's user avatar
1 vote
2 answers
636 views

According to TypeScript types definitions, the type of ProgressEvent.target.result could be string, ArrayBuffer or null. What I need is, the function which encodes the file to base64 which is type ...
Takeshi Tokugawa YD's user avatar
0 votes
1 answer
658 views

uint8 is an arrayBuffer created using reader.readAsArrayBuffer from an image file. The size of this arraybuffer is 30984. The size of the original image file is also 30984. However, if you create a ...
리루스's user avatar
0 votes
0 answers
145 views

The purpose of the code is to upload files to Google Drive from a web app programmatically using JavaScript. The part that uploads documents is working okay, but the video part is still not working. I ...
Jed Santos's user avatar
0 votes
1 answer
1k views

I am trying to load a font for pdf-lib to use. In order to use it, i must provide a Uint8Array for pdfDoc.embedFont(font); For some reason, whenever i create the UInt8Array, it returns empty. The ...
skelyvelocirap's user avatar
2 votes
0 answers
595 views

which is more efficient on nodejs server 1) let file :File = (await formData()).get('input-png') let arrayBuffer = file.arrayBuffer() buffer = Buffer.from(arrayBuffer) 2) let file :File = (await ...
Nikhil Kumar's user avatar
1 vote
2 answers
4k views

Context: I have some code like this in my application: let blob = new Blob([JSON.stringify(json)], {type: "application/json"}); However, it sometimes fails because in Chrome the maximum ...
joe's user avatar
  • 6,195
0 votes
1 answer
2k views

I'm developing a Python App which uses PyQt5 and PyQtWebEngine to create a browser window. Using QWebChannel I'm able to send strings back and forth between the Web Application and the Python program. ...
Miger's user avatar
  • 1,247
1 vote
2 answers
171 views

So I have a file which contains values of 12 bit unsigned integers. I have no problem reading the file directly into a UInt8Array or UInt16Array but the values are of course incorrect and the length ...
LuxGOD's user avatar
  • 43
0 votes
1 answer
1k views

I am trying to get file from api (docx, odt) and save it to downloads (this is frontend app). I'v tried postman 'Save response to file' and it works ok, file saved as i expected. What should I do in ...
Grigory Voevodin's user avatar
0 votes
2 answers
2k views

I have an array buffer that created from pdf file, I have to send that data to the server side. What is the type C# may want to get? What type should I send from the client side? not sure what is the ...
ESI's user avatar
  • 2,087
0 votes
1 answer
374 views

The ArrayBuffer.isView() static method checks if it's one of the ArrayBuffer views, such as TypedArray objects or a DataView. How do you check if it's a view of a SharedArrayBuffer? It's been a quite ...
Константин Ван's user avatar
1 vote
1 answer
2k views

I have been working with html2pdf.js library to convert the HTML content to PDF and add my own custom header and footer on each page while converting. This actually works for me, but I couldn't pass ...
sam's user avatar
  • 11
1 vote
0 answers
386 views

First of all, I clearly know what node.js stream is. Node.js stream is used when I need a way to serve data in chunks, piece by piece, to the memory, instead of loading the entire content of a file ...
Kid_Learning_C's user avatar
1 vote
0 answers
930 views

I'm working on a Telegram bot that can receive voice messages and then let OpenAI's Whisper transcribe them and then respond using OpenAI's chat completions API. Anyway, Whisper does accept a webm ...
Evert's user avatar
  • 2,192
1 vote
1 answer
2k views

I am trying to fetch an image using the native node.js https module and receive the response body as an array buffer. With axios, you can simply do this: axios.get('https://placehold.co/600x400', { ...
Anatol Zakrividoroga's user avatar
-1 votes
1 answer
897 views

I'm trying to load an OBJ file from a blob with three js. I've referred to this and got STLs to load. But it's not working for OBJs. The error I'm getting is: TypeError: text.indexOf is not a function ...
Luca Phillips's user avatar
0 votes
0 answers
38 views

I am trying to read the temperature from a Comark BT42. The temperature can be retrieved from the device as an arraybuffer. However trying to turn that into a float has some odd results. My app is ...
robertryanmoore's user avatar
1 vote
0 answers
58 views

I'm working on a live video streaming service. I get data from the camera and turn the binary array to base64 and send base64 strings to other clients. in the receiver part, I'm using Mediasource API ...
Sobhan Akbarzadeh's user avatar
0 votes
3 answers
166 views

Add elements to the array buffer such that the element to be added is the product of the previous two elements of the input array buffer. The elements in the output array buffer should not exceed ...
YRKR's user avatar
  • 3
0 votes
1 answer
240 views

I'm getting an error when I'm trying to write a file with PNG data. var png = UPNG.encode([data], width, height, 0); var file = fs.writeFile("mypng.png", png); Error: [TypeError: The "...
1.21 gigawatts's user avatar
0 votes
0 answers
1k views

I'm tring to retrieve a list of files from an API using axios, in Node.js. What I get is what I assume is an ArrayBuffer string. I'm using the following code: axios.get('http://api.com/filesList')....
coldpumpkin's user avatar
3 votes
1 answer
1k views

I'm using fetch to retrieve a URL. This is in code that is acting as a proxy and if it gets a response with content-encoding: gzip, I want to get the raw data so I can send it back to the consumer ...
donaddon's user avatar
  • 432
2 votes
1 answer
3k views

I created an ImageUrl using the following code in React with Typescript. It made a URL, however does not show a picture image. Clicking on the URL eg "http://localhost:3003/0b4de100-d8eb-49a7-...
mattsmith5's user avatar
  • 1,347
2 votes
1 answer
2k views

I'm using googles text-to-speech api on the backend, and sending to the frontend in the form of an ArrayBuffer. It then gets converted to a url that played with audio.play() This is working on chrome ...
Grambam's user avatar
  • 584
0 votes
0 answers
167 views

I am currently working on a multiplayer casino game. In the game, there is a poker game and after playing 4 rounds of it I was getting this error but when I reduced or compressed the textures now I am ...
Narendra Kumar jha's user avatar

1
2 3 4 5
13