Hi All,

I have also problem during lazy loading of images.the out put of log is 
like this.

please guide me if ..
(28446): cache size=4191750 length=107
05-16 15:33:06.110: I/MemoryCache(28446): cache size=2952450 length=81
05-16 15:33:06.250: I/MemoryCache(28446): cache size=4228200 length=108
05-16 15:33:06.270: I/MemoryCache(28446): cache size=4902525 length=129
05-16 15:33:06.590: D/dalvikvm(28446): GC_FOR_ALLOC freed 1009K, 3% free 
62703K/64455K, paused 192ms
05-16 15:33:06.600: I/MemoryCache(28446): cache size=2642625 length=72
05-16 15:33:06.600: I/MemoryCache(28446): cache size=4938975 length=130
05-16 15:33:06.600: I/MemoryCache(28446): cache size=4501575 length=124
05-16 15:33:06.610: I/MemoryCache(28446): cache size=4975425 length=131
05-16 15:33:06.610: I/MemoryCache(28446): cache size=4538025 length=125
05-16 15:33:06.610: I/MemoryCache(28446): cache size=5212350 length=137
05-16 15:33:06.630: I/MemoryCache(28446): cache size=4574475 length=126
05-16 15:33:06.720: I/MemoryCache(28446): cache size=5248800 length=138
05-16 15:33:06.850: I/MemoryCache(28446): cache size=5011875 length=132
05-16 15:33:06.880: I/MemoryCache(28446): cache size=2679075 length=73
05-16 15:33:07.070: I/MemoryCache(28446): cache size=5285250 length=139
05-16 15:33:07.100: I/MemoryCache(28446): cache size=5048325 length=133
05-16 15:33:07.380: D/dalvikvm(28446): GC_FOR_ALLOC freed 790K, 3% free 
63129K/64903K, paused 177ms
05-16 15:33:07.390: I/MemoryCache(28446): cache size=3134700 length=86
05-16 15:33:07.390: I/MemoryCache(28446): cache size=4610925 length=127
05-16 15:33:07.390: I/MemoryCache(28446): cache size=4264650 length=109
05-16 15:33:07.410: I/MemoryCache(28446): cache size=2988900 length=82
05-16 15:33:07.660: I/MemoryCache(28446): cache size=5321700 length=140
05-16 15:33:08.610: I/MemoryCache(28446): cache size=4647375 length=128
05-16 15:33:09.050: I/MemoryCache(28446): cache size=5358150 length=141
05-16 15:33:09.110: I/MemoryCache(28446): cache size=3025350 length=83
05-16 15:33:09.210: I/MemoryCache(28446): cache size=4301100 length=110
05-16 15:33:09.390: I/MemoryCache(28446): cache size=4337550 length=111
05-16 15:33:09.470: I/MemoryCache(28446): cache size=5084775 length=134
05-16 15:33:09.640: I/MemoryCache(28446): cache size=4374000 length=112
05-16 15:33:10.080: I/dalvikvm-heap(28446): Clamp target GC heap from 
64.109MB to 64.000MB
05-16 15:33:10.080: D/dalvikvm(28446): GC_FOR_ALLOC freed 930K, 3% free 
63490K/65287K, paused 190ms
05-16 15:33:10.080: I/MemoryCache(28446): cache size=4683825 length=129
05-16 15:33:10.090: I/MemoryCache(28446): cache size=4683825 length=129
05-16 15:33:10.090: I/MemoryCache(28446): cache size=5121225 length=135
05-16 15:33:10.090: I/MemoryCache(28446): cache size=5157675 length=136
05-16 15:33:10.090: I/MemoryCache(28446): cache size=2715525 length=74
05-16 15:33:10.150: I/MemoryCache(28446): cache size=4720275 length=130
05-16 15:33:10.200: I/MemoryCache(28446): cache size=5394600 length=142
05-16 15:33:10.330: I/MemoryCache(28446): cache size=5157675 length=136
05-16 15:33:10.360: I/MemoryCache(28446): cache size=2751975 length=75
05-16 15:33:10.550: I/dalvikvm-heap(28446): Clamp target GC heap from 
64.279MB to 64.000MB
05-16 15:33:10.550: D/dalvikvm(28446): GC_FOR_ALLOC freed 555K, 3% free 
63663K/65543K, paused 173ms
05-16 15:33:10.550: I/dalvikvm-heap(28446): Forcing collection of 
SoftReferences for 36466-byte allocation
05-16 15:33:10.750: I/dalvikvm-heap(28446): Clamp target GC heap from 
64.279MB to 64.000MB
05-16 15:33:10.750: D/dalvikvm(28446): GC_BEFORE_OOM freed 9K, 3% free 
63654K/65543K, paused 188ms
05-16 15:33:10.750: E/dalvikvm-heap(28446): Out of memory on a 36466-byte 
allocation.
05-16 15:33:10.750: I/dalvikvm(28446): "pool-5-thread-3" prio=5 tid=37 
RUNNABLE
05-16 15:33:10.750: I/dalvikvm(28446):   | group="main" sCount=0 dsCount=0 
obj=0x41981bd8 self=0x424c10
05-16 15:33:10.750: I/dalvikvm(28446):   | sysTid=28483 nice=0 sched=0/0 
cgrp=default handle=4412056
05-16 15:33:10.750: I/dalvikvm(28446):   | schedstat=( 1152779000 227827000 
2242 ) utm=98 stm=17 core=0
05-16 15:33:10.750: I/dalvikvm(28446):   at 
android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
05-16 15:33:10.750: I/dalvikvm(28446):   at 
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
05-16 15:33:10.750: I/dalvikvm(28446):   at 
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:643)
05-16 15:33:10.750: I/dalvikvm(28446):   at 
utils.ImageLoader.getBitmap(ImageLoader.java:88)
05-16 15:33:10.750: I/dalvikvm(28446):   at 
utils.ImageLoader.access$0(ImageLoader.java:57)
05-16 15:33:10.750: I/dalvikvm(28446):   at 
utils.ImageLoader$PhotosLoader.run(ImageLoader.java:151)
05-16 15:33:10.750: I/dalvikvm(28446):   at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
05-16 15:33:10.750: I/dalvikvm(28446):   at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
05-16 15:33:10.750: I/dalvikvm(28446):   at 
java.util.concurrent.FutureTask.run(FutureTask.java:137)
05-16 15:33:10.750: I/dalvikvm(28446):   at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1081)
05-16 15:33:10.750: I/dalvikvm(28446):   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:574)
05-16 15:33:10.750: I/dalvikvm(28446):   at 
java.lang.Thread.run(Thread.java:1020)
05-16 15:33:10.750: D/skia(28446): libjpeg error 105 <  Ss=%d, Se=%d, 
Ah=%d, Al=%d> from allocPixelRef [135 135]
05-16 15:33:10.750: D/skia(28446): --- decoder->decode returned false
05-16 15:33:10.930: I/dalvikvm-heap(28446): Clamp target GC heap from 
64.318MB to 64.000MB
05-16 15:33:10.930: D/dalvikvm(28446): GC_FOR_ALLOC freed 17K, 3% free 
63694K/65543K, paused 167ms
05-16 15:33:10.930: I/dalvikvm-heap(28446): Forcing collection of 
SoftReferences for 36466-byte allocation
05-16 15:33:11.110: I/dalvikvm-heap(28446): Clamp target GC heap from 
64.318MB to 64.000MB
05-16 15:33:11.110: D/dalvikvm(28446): GC_BEFORE_OOM freed 0K, 3% free 
63694K/65543K, paused 178ms
05-16 15:33:11.110: E/dalvikvm-heap(28446): Out of memory on a 36466-byte 
allocation.
05-16 15:33:11.110: I/dalvikvm(28446): "pool-2-thread-5" prio=5 tid=24 
RUNNABLE
05-16 15:33:11.110: I/dalvikvm(28446):   | group="main" sCount=0 dsCount=0 
obj=0x41047af8 self=0x1e77a0
05-16 15:33:11.110: I/dalvikvm(28446):   | sysTid=28470 nice=0 sched=0/0 
cgrp=default handle=1996992
05-16 15:33:11.110: I/dalvikvm(28446):   | schedstat=( 1682622000 257435000 
2529 ) utm=158 stm=10 core=1
05-16 15:33:11.110: I/dalvikvm(28446):   at 
android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
05-16 15:33:11.110: I/dalvikvm(28446):   at 
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
05-16 15:33:11.110: I/dalvikvm(28446):   at 
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:643)
05-16 15:33:11.110: I/dalvikvm(28446):   at 
utils.ImageLoader.getBitmap(ImageLoader.java:88)
05-16 15:33:11.110: I/dalvikvm(28446):   at 
utils.ImageLoader.access$0(ImageLoader.java:57)
05-16 15:33:11.110: I/dalvikvm(28446):   at 
utils.ImageLoader$PhotosLoader.run(ImageLoader.java:151)
05-16 15:33:11.110: I/dalvikvm(28446):   at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
05-16 15:33:11.110: I/dalvikvm(28446):   at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
05-16 15:33:11.110: I/dalvikvm(28446):   at 
java.util.concurrent.FutureTask.run(FutureTask.java:137)
05-16 15:33:11.110: I/dalvikvm(28446):   at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1081)
05-16 15:33:11.110: I/dalvikvm(28446):   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:574)
05-16 15:33:11.110: I/dalvikvm(28446):   at 
java.lang.Thread.run(Thread.java:1020)
05-16 15:33:11.300: I/dalvikvm-heap(28446): Clamp target GC heap from 
64.354MB to 64.000MB
05-16 15:33:11.300: D/dalvikvm(28446): GC_FOR_ALLOC freed 87K, 3% free 
63732K/65543K, paused 166ms
05-16 15:33:11.300: I/dalvikvm-heap(28446): Forcing collection of 
SoftReferences for 36466-byte allocation
05-16 15:33:11.480: I/dalvikvm-heap(28446): Clamp target GC heap from 
64.354MB to 64.000MB
05-16 15:33:11.480: D/dalvikvm(28446): GC_BEFORE_OOM freed 2K, 3% free 
63729K/65543K, paused 181ms
05-16 15:33:11.480: E/dalvikvm-heap(28446): Out of memory on a 36466-byte 
allocation.
05-16 15:33:11.480: I/dalvikvm(28446): "pool-1-thread-2" prio=5 tid=16 
RUNNABLE
05-16 15:33:11.480: I/dalvikvm(28446):   | group="main" sCount=0 dsCount=0 
obj=0x40efde80 self=0x32afe8
05-16 15:33:11.480: I/dalvikvm(28446):   | sysTid=28462 nice=0 sched=0/0 
cgrp=default handle=2065968
05-16 15:33:11.480: I/dalvikvm(28446):   | schedstat=( 692602000 228019000 
1799 ) utm=58 stm=11 core=0
05-16 15:33:11.480: I/dalvikvm(28446):   at 
android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
05-16 15:33:11.480: I/dalvikvm(28446):   at 
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
05-16 15:33:11.480: I/dalvikvm(28446):   at 
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:643)
05-16 15:33:11.480: I/dalvikvm(28446):   at 
utils.ImageLoader.getBitmap(ImageLoader.java:88)
05-16 15:33:11.480: I/dalvikvm(28446):   at 
utils.ImageLoader.access$0(ImageLoader.java:57)
05-16 15:33:11.480: I/dalvikvm(28446):   at 
utils.ImageLoader$PhotosLoader.run(ImageLoader.java:151)
05-16 15:33:11.480: I/dalvikvm(28446):   at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
05-16 15:33:11.480: I/dalvikvm(28446):   at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
05-16 15:33:11.480: I/dalvikvm(28446):   at 
java.util.concurrent.FutureTask.run(FutureTask.java:137)
05-16 15:33:11.480: I/dalvikvm(28446):   at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1081)
05-16 15:33:11.480: I/dalvikvm(28446):   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:574)
05-16 15:33:11.480: I/dalvikvm(28446):   at 
java.lang.Thread.run(Thread.java:1020)
05-16 15:33:11.480: D/skia(28446): libjpeg error 105 <  Ss=%d, Se=%d, 
Ah=%d, Al=%d> from allocPixelRef [135 135]
05-16 15:33:11.480: D/skia(28446): --- decoder->decode returned false
05-16 15:33:11.650: I/dalvikvm-heap(28446): Clamp target GC heap from 
64.319MB to 64.000MB
05-16 15:33:11.650: D/dalvikvm(28446): GC_FOR_ALLOC freed 36K, 3% free 
63694K/65543K, paused 167ms
05-16 15:33:11.650: I/dalvikvm-heap(28446): Forcing collection of 
SoftReferences for 36466-byte allocation
05-16 15:33:11.830: I/dalvikvm-heap(28446): Clamp target GC heap from 
64.319MB to 64.000MB
05-16 15:33:11.830: D/dalvikvm(28446): GC_BEFORE_OOM freed <1K, 3% free 
63693K/65543K, paused 177ms
05-16 15:33:11.830: E/dalvikvm-heap(28446): Out of memory on a 36466-byte 
allocation.
05-16 15:33:11.830: I/dalvikvm(28446): "pool-9-thread-2" prio=5 tid=56 
RUNNABLE
05-16 15:33:11.830: I/dalvikvm(28446):   | group="main" sCount=0 dsCount=0 
obj=0x41cad218 self=0x2a7ed0
05-16 15:33:11.830: I/dalvikvm(28446):   | sysTid=28509 nice=0 sched=0/0 
cgrp=default handle=4624216
05-16 15:33:11.830: I/dalvikvm(28446):   | schedstat=( 1377467000 287591000 
2223 ) utm=131 stm=6 core=1
05-16 15:33:11.830: I/dalvikvm(28446):   at 
android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
05-16 15:33:11.830: I/dalvikvm(28446):   at 
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
05-16 15:33:11.830: I/dalvikvm(28446):   at 
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:643)
05-16 15:33:11.830: I/dalvikvm(28446):   at 
utils.ImageLoader.getBitmap(ImageLoader.java:88)
05-16 15:33:11.830: I/dalvikvm(28446):   at 
utils.ImageLoader.access$0(ImageLoader.java:57)
05-16 15:33:11.830: I/dalvikvm(28446):   at 
utils.ImageLoader$PhotosLoader.run(ImageLoader.java:151)
05-16 15:33:11.830: I/dalvikvm(28446):   at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
05-16 15:33:11.830: I/dalvikvm(28446):   at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
05-16 15:33:11.830: I/dalvikvm(28446):   at 
java.util.concurrent.FutureTask.run(FutureTask.java:137)
05-16 15:33:11.830: I/dalvikvm(28446):   at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1081)
05-16 15:33:11.830: I/dalvikvm(28446):   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:574)
05-16 15:33:11.830: I/dalvikvm(28446):   at 
java.lang.Thread.run(Thread.java:1020)
05-16 15:33:11.830: D/skia(28446): libjpeg error 105 <  Ss=%d, Se=%d, 
Ah=%d, Al=%d> from allocPixelRef [135 135]
05-16 15:33:11.830: D/skia(28446): --- decoder->decode returned false
05-16 15:33:11.830: D/skia(28446): libjpeg error 105 <  Ss=%d, Se=%d, 
Ah=%d, Al=%d> from allocPixelRef [135 135]
05-16 15:33:11.830: D/skia(28446): --- decoder->decode returned false
05-16 15:33:12.010: I/dalvikvm-heap(28446): Clamp target GC heap from 
64.281MB to 64.000MB
05-16 15:33:12.010: D/dalvikvm(28446): GC_FOR_ALLOC freed 104K, 3% free 
63654K/65543K, paused 168ms
05-16 15:33:12.010: I/dalvikvm-heap(28446): Forcing collection of 
SoftReferences for 36466-byte allocation
05-16 15:33:12.190: I/dalvikvm-heap(28446): Clamp target GC heap from 
64.281MB to 64.000MB
05-16 15:33:12.190: D/dalvikvm(28446): GC_BEFORE_OOM freed <1K, 3% free 
63654K/65543K, paused 177ms
05-16 15:33:12.190: E/dalvikvm-heap(28446): Out of memory on a 36466-byte 
allocation.
05-16 15:33:12.190: I/dalvikvm(28446): "pool-3-thread-2" prio=5 tid=26 
RUNNABLE
05-16 15:33:12.190: I/dalvikvm(28446):   | group="main" sCount=0 dsCount=0 
obj=0x416b67e8 self=0x3f0e38
05-16 15:33:12.190: I/dalvikvm(28446):   | sysTid=28472 nice=0 sched=0/0 
cgrp=default handle=3537192
05-16 15:33:12.190: I/dalvikvm(28446):   | schedstat=( 1197471000 262390000 
2215 ) utm=112 stm=7 core=1
05-16 15:33:12.190: I/dalvikvm(28446):   at 
android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
05-16 15:33:12.190: I/dalvikvm(28446):   at 
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
05-16 15:33:12.190: I/dalvikvm(28446):   at 
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:643)
05-16 15:33:12.190: I/dalvikvm(28446):   at 
utils.ImageLoader.getBitmap(ImageLoader.java:88)
05-16 15:33:12.190: I/dalvikvm(28446):   at 
utils.ImageLoader.access$0(ImageLoader.java:57)
05-16 15:33:12.190: I/dalvikvm(28446):   at 
utils.ImageLoader$PhotosLoader.run(ImageLoader.java:151)
05-16 15:33:12.190: I/dalvikvm(28446):   at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
05-16 15:33:12.190: I/dalvikvm(28446):   at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
05-16 15:33:12.190: I/dalvikvm(28446):   at 
java.util.concurrent.FutureTask.run(FutureTask.java:137)
05-16 15:33:12.190: I/dalvikvm(28446):   at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1081)
05-16 15:33:12.190: I/dalvikvm(28446):   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:574)
05-16 15:33:12.190: I/dalvikvm(28446):   at 
java.lang.Thread.run(Thread.java:1020)
05-16
05-16 15:33:38.870: I/dalvikvm-heap(28446): Clamp target GC heap from 
64.326MB to 64.000MB
05-16 15:33:38.870: D/dalvikvm(28446): GC_FOR_ALLOC freed 50K, 3% free 
63700K/65543K, paused 191ms
05-16 15:33:38.870: I/dalvikvm-heap(28446): Forcing collection of 
SoftReferences for 36466-byte allocation


On Tuesday, April 27, 2010 6:20:07 PM UTC+5:30, (unknown) wrote:
>
> Hi Carmen,
>
> I run into the same OutOfMemoryError issue when uploading video files of 
> several MB within my app. I decided to look into this for the next version 
> of the app. So, in the unlikely event you still haven't found a solution 
> for this, here is how I get an answer from the server, even when using 
> setChunkedStreamingMode:
>
> DataInputStream inStream = new DataInputStream ( conn.getInputStream() );
> String oneLine, fullMsg="", msgStr;
> while (( oneLine = inStream.readLine()) != null) {
> if (DEBUG) Log.d(TAG, "Server Response: " + oneLine);
> fullMsg += oneLine + "\n"; 
> }
> inStream.close();
>
> I could have used a StringBuilder for fullMsg, but I have 2 lines at most 
> coming from the server.
>
> Robert
> ------
> http://dailyroads.com/voyager/
>
>
> > If I upload a large file using an HttpURLConnection and
> > setChunkedStreamingMode the file is successfully uploaded. But, I am not
> > able to read the response from the server.
>
> > If I leave out streaming mode line:
> > conn.setChunkedStreamingMode(1000*1024);
> > I get an out of memory error on large file, but this works well for small
> > files and I get a response from the server.
>
> > Any insights on this?
> > Carmen
>
> > // Set up URL Connection for streaming
> > HttpURLConnection conn = (HttpURLConnection) connectURL.openConnection();
> > conn.setDoInput(true);
> > conn.setDoOutput(true);
> > conn.setUseCaches(false);
> > conn.setChunkedStreamingMode(1000*1024);
> > conn.setRequestMethod("POST");
> > conn.setRequestProperty("Connection", "Keep-Alive");
> > conn.setRequestProperty("Content-Type",
> > "multipart/form-data;boundary="+boundary);
>
> > // Read response
> > // this works for small files when not in streaming mode
> > // for large files, connection is reset by server (time outs)
> > Reader reader = new InputStreamReader( conn.getInputStream() );
> > StringBuilder in = new StringBuilder( 32000 );
> > int x;
> > while ( (x=reader.read()) != -1 ){
> > in.append( (char)x );
> > } 
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en


On Tuesday, April 27, 2010 6:20:07 PM UTC+5:30, (unknown) wrote:
>
> Hi Carmen,
>
> I run into the same OutOfMemoryError issue when uploading video files of 
> several MB within my app. I decided to look into this for the next version 
> of the app. So, in the unlikely event you still haven't found a solution 
> for this, here is how I get an answer from the server, even when using 
> setChunkedStreamingMode:
>
> DataInputStream inStream = new DataInputStream ( conn.getInputStream() );
> String oneLine, fullMsg="", msgStr;
> while (( oneLine = inStream.readLine()) != null) {
> if (DEBUG) Log.d(TAG, "Server Response: " + oneLine);
> fullMsg += oneLine + "\n"; 
> }
> inStream.close();
>
> I could have used a StringBuilder for fullMsg, but I have 2 lines at most 
> coming from the server.
>
> Robert
> ------
> http://dailyroads.com/voyager/
>
>
> > If I upload a large file using an HttpURLConnection and
> > setChunkedStreamingMode the file is successfully uploaded. But, I am not
> > able to read the response from the server.
>
> > If I leave out streaming mode line:
> > conn.setChunkedStreamingMode(1000*1024);
> > I get an out of memory error on large file, but this works well for small
> > files and I get a response from the server.
>
> > Any insights on this?
> > Carmen
>
> > // Set up URL Connection for streaming
> > HttpURLConnection conn = (HttpURLConnection) connectURL.openConnection();
> > conn.setDoInput(true);
> > conn.setDoOutput(true);
> > conn.setUseCaches(false);
> > conn.setChunkedStreamingMode(1000*1024);
> > conn.setRequestMethod("POST");
> > conn.setRequestProperty("Connection", "Keep-Alive");
> > conn.setRequestProperty("Content-Type",
> > "multipart/form-data;boundary="+boundary);
>
> > // Read response
> > // this works for small files when not in streaming mode
> > // for large files, connection is reset by server (time outs)
> > Reader reader = new InputStreamReader( conn.getInputStream() );
> > StringBuilder in = new StringBuilder( 32000 );
> > int x;
> > while ( (x=reader.read()) != -1 ){
> > in.append( (char)x );
> > } 
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to