Search:

Type: Posts; User: imran.ali@adamm.eu

Search: Search took 0.33 seconds.

  1. Replies
    9
    Views
    265

    Re: Java Heap Space Error

    My apologies, I just edited it a little to make it easier to understand. Here is the code untouched:




    private byte[] input = new byte[4096];

    public boolean upload(String ip, String...
  2. Replies
    9
    Views
    265

    Re: Java Heap Space Error

    I have increased the heap space by doing -Xmx2048m and ran it on a computer with 4gb ram. All files that are uploaded are less than 1gb.
    I cant figure out why unless I have a memory leak somewhere...
  3. Replies
    9
    Views
    265

    Re: Java Heap Space Error

    Hi Norm,

    Thank you for getting back. Sorry I fogot to copy that in.



    byte[] input = new byte[4096];


    Here is the full error:
  4. Replies
    9
    Views
    265

    Java Heap Space Error

    Hello All,
    Thank you for having a look at my post.

    I don't know why I'm getting the java heap space error. This is the error:

    3370

    I think its due to the way I'm reading in the file. Do I...
  5. Re: Splitting large video files into small chunks and combining them

    This is what I get:

    Resume is supported
    Appending the /Users/adamm001/Documents/Projects/ADaMM CCTV Uploader/upload/small.mp4 to Remote Machine
    TRANSFER-STATUS: File transfer started......
  6. Re: Splitting large video files into small chunks and combining them

    Thanks for getting back.

    This is what the print statements print. After line 3 it hands for like 15 minutes. I have looked into breaking the big files but the issue I have with that is with a 10gb...
  7. Re: Splitting large video files into small chunks and combining them

    Thanks for getting back.

    Im trying to make it easier for myself and use FTP4J which supports restart. But I cannot get it to work. It works fine when uploading the whole file. But when I stop it...
  8. Re: Splitting large video files into small chunks and combining them

    Hi,

    Ive been reading up on socket programming in Java. What do you think about sending multiple byte[] array's over a socket compared with sending byte files over ftp?

    I need a way to resume...
  9. Re: Splitting large video files into small chunks and combining them

    Hi Norm and Aussiemcgr,

    Thank you for getting back. Its much more clearer to me know. I will convert the video file into a byte array and then convert it back to the video. I will give this a try...
  10. Re: Splitting large video files into small chunks and combining them

    Hi Norm,

    Thank you for replying to my thread. Can you point in the right direction on what Java classes/api I can use to split and merge video files please? I ahve looked at Apache Commons but...
  11. Splitting large video files into small chunks and combining them

    Hi All,

    Thank you for viewing my thread. I have searched for hours but cannot find any information on this topic.

    I need to upload very large video files. The files can be something like 10GB...
Results 1 to 11 of 11