Questions tagged [chunking]

1. In memory management, chunking refers to strategies for improving performance by aggregating related memory-allocation requests. 2. In HTTP message transmission, it refers to a facility that allows inconveniently large messages to be broken into conveniently-sized smaller "chunks." 3. In parallel computing, it refers to the amount of data to assign to each task.

369 questions
0
votes
1 answer

Chunking Arrays by Condition Javascript

I'm trying to group some JSON data into pairs, for a slider, but we've got a layout rule as below Portrait | Portrait Landscape Portrait | Portrait Portrait | Portrait Landscape Landscape So in the gallery, 2 portrait images can be next to each…
owenmelbz
  • 6,180
  • 16
  • 63
  • 113
0
votes
2 answers

Serialize array slice for WCF service

I am sending and receiving large arrays of objects to and from a WCF service. I am splitting the array into chunks and sending those, so that each call is not too large. The code looks something like this: //split data up so there is no "400 - Bad…
TMVector
  • 29
  • 6
0
votes
3 answers

Chunking MySQL array with json encode

I know there are existing some Questions about Chunking a mysql array in php, but my problem is, that I want to keep the output in JSON. Scenario: I want to get data from mysql, do some stuff with it ( like time formatting ) and output it in…
proc
  • 300
  • 3
  • 16
0
votes
2 answers

Sending Large Image in chunks

I am sending images from my android client to java jersey restful service and I succeded in doing that.But my issue is when I try to send large images say > 1MB its consumes more time so I like to send image in CHUNKS can anyone help me in doing…
Wilson
  • 176
  • 1
  • 11
0
votes
0 answers

File name from binary stream

I am working in java jersey restful web services.Here i am sending a file stream and file name as like (httppost.setHeader("Filename:", String.valueOf(filename));) in the server side how to get the file name. this (**@HeaderParam("Filename:")…
Wilson
  • 176
  • 1
  • 11
0
votes
0 answers

c# chunking 2Gb file still crashes inputstream

I have a file upload system and when I upload anything over 1.2GB even when using chunking at 20mb a chuck, I get a inputstream error when 75% uploaded. I am using the below and them merging the files once uploaded. I am guessing .net isn't dispose…
lee
  • 738
  • 1
  • 7
  • 18
0
votes
2 answers

How can I chunk xml to multiple parts in java?

I have a code that creates xml. public void createXML(InputStream in, String fileName) throws IOException { baos = new ByteArrayOutputStream(); byte[] buf = new byte[BUF_SIZE]; int readNum = 0; Writer writer = new BufferedWriter(new…
pmark019
  • 1,199
  • 5
  • 15
  • 24
0
votes
1 answer

Binary-safe function for sending chunks of files in PHP

I've crafted my own version of simple solution, for sending large files in PHP. It uses file chunks. This solution is proted from various sources and I copy-pasted following code to implement "chunking": $handle = fopen($filename, 'rb'); while…
trejder
  • 17,148
  • 27
  • 124
  • 216
0
votes
1 answer

DocBook XSL chunking

Can anyone point me to the part of this file that controls chunking? http://docbook4j.googlecode.com/svn-history/r4/trunk/docbook4j/src/main/resources/xsl/docbook/webhelp/xsl/webhelp-common.xsl I can't relate what I find in this doc to the code I…
Robert Lauriston
  • 437
  • 3
  • 12
0
votes
1 answer

Convert NLTK "clean" tree to NLTK Chunker structure

I'm new to python and struggle with data types concept and their conversions. I have sentences in NLTK Tree format (obtained from Stanford parser and converted to an NLTK tree). I need to apply functions written for NLTK Chunker. However, NLTK tree…
uzla
  • 515
  • 1
  • 4
  • 20
0
votes
3 answers

How to return a byte[] doing chunking using remoting over http in C#?

In .Net remoting over http, we return a byte[] back to the client by doing a SerilizationInfo.AddValue(SerializationInfoValueName, ((MemoryStream)writer.BaseStream).GetBuffer(), typeof(byte[])) call. However, sometimes the byte[] size gets too big…
Doguhan Uluca
  • 6,933
  • 4
  • 38
  • 51
0
votes
1 answer

How to send chunk files in web api in android?

I'm sending a files that is greater than 2mb. In able to send this file I need to divide this file into smaller pieces with the size of 2mb per pieces[chunks] and send it by chunk. I already divided the files into smaller chunks and send it to web…
NewDroidDev
  • 1,656
  • 5
  • 19
  • 33
0
votes
1 answer

finger printing chunks using python

I am trying to chunk a file and create SHA1 finger prints for those chunks. Following is the code. My file is just having one line "tests" when I generate finger print from python command prompt I get different answer. >>> m = hashlib.sha1() >>>…
user1792899
0
votes
1 answer

Unable to extract noun pharses from the result of open nlp Chunking parser

Hi i have used openNLP chunking Parser and parsed some text and with the help of below stack overflow question i have tried to extract only noun phrases How to extract the noun phrases using Open nlp's chunking parser But i was unable to extract…
user2598214
  • 51
  • 1
  • 2
0
votes
1 answer

I can't find Memory leak

Maybe this is not a good question to post but I am kinda desperate. I have a little piece of code, and i have a memory leak, but i don't know how to overcome it. please help. var nPiece = stream.Length / BufferLen; var lastPieceLen =…
Tolga Evcimen
  • 7,112
  • 11
  • 58
  • 91