Android Question gmail smtp attachment speed

Discussion in 'Android Questions' started by Sia, Jun 3, 2015.

  1. Sia

    Sia Member Licensed User

    Hi ,
    i tried to upload jpg file with my android program, everything is ok but my problem is speed of attachment !
    when i tried attach with android i can see my speed for attachment is ~50-80 KB and when i tried attach with my laptop i can see my speed is ~1-2 MBps .
    why it happened ?

    i think mozilla is use multi trading(multi connection o_O) for upload file like IDM ( internet download manager ) or filezilla and my program not !

    please advice me .
    thank you.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    What is the attachments size?
     
  3. Sia

    Sia Member Licensed User

    attachments size is 5.8M
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    I don't recommend you to use SMTP for non-small files. First it needs to encode the file with base64 encoding which can slow it down and increase the file size by 33%.
    Secondly the SMTP library does everything in memory. So it may run out of memory.

    FTP or Http will be better here.
     
    Sia likes this.
Loading...