[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-02 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

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-02 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 kumarnaveen.si...@gmail.com 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

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-02 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 kumarnaveen.si...@gmail.com wrote: here i am taking video file for read byte the error byte arry outofmemory On Fri, Sep 2,

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-02 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 therevolti...@gmail.com wrote: Look up examples on stream reading a file for java. The problem is you are allocating an extremely