Re: [android-developers] Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error

2011-09-01 Thread NaveenShrivastva
Yes i understanding this issue large byte array size overflow how handle here.give me way please or perfect url On Fri, Sep 2, 2011 at 12:24 PM, Miguel Morales wrote: > Look up examples on stream reading a file for java. > The problem is you are allocating an extremely large byte array. > > On T

Re: [android-developers] Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error

2011-09-01 Thread Miguel Morales
Look up examples on stream reading a file for java. The problem is you are allocating an extremely large byte array. On Thu, Sep 1, 2011 at 11:51 PM, NaveenShrivastva wrote: > here i am taking video file for read byte the error byte arry outofmemory > > On Fri, Sep 2, 2011 at 12:13 PM, Naveen wr

Re: [android-developers] Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error

2011-09-01 Thread NaveenShrivastva
here i am taking video file for read byte the error byte arry outofmemory On Fri, Sep 2, 2011 at 12:13 PM, Naveen wrote: > Please see this example when i am taking small file then it works but > when taking large video size with 1gb approx then outofmemory error > > > import java.io.*; > > public

[android-developers] Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error

2011-09-01 Thread Naveen
Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error import java.io.*; public class ReadFileByteArray { public static void main(String[] args) { //create file object File file = new File("C://FileIO//ReadStrin