Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28464

Re: Upload using java nio

X-Received by 10.182.79.41 with SMTP id g9mr242818obx.41.1400031498648; Tue, 13 May 2014 18:38:18 -0700 (PDT)
X-Received by 10.140.95.141 with SMTP id i13mr8270qge.3.1400031498601; Tue, 13 May 2014 18:38:18 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!r10no4164438igi.0!news-out.google.com!gi6ni900igc.0!nntp.google.com!c1no6041032igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Tue, 13 May 2014 18:38:17 -0700 (PDT)
In-Reply-To <5372bab4$0$296$14726298@news.sunsite.dk>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=191.185.40.253; posting-account=JYMozwoAAABEzHlCeA5JjFY2Blld-MCb
NNTP-Posting-Host 191.185.40.253
References <459ec56a-b369-4261-b819-a4f232362f74@googlegroups.com> <5372bab4$0$296$14726298@news.sunsite.dk>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <e0149c20-6681-4be1-b166-b2dfbf71ebdd@googlegroups.com> (permalink)
Subject Re: Upload using java nio
From William Lopes <williamlopes.dev@gmail.com>
Injection-Date Wed, 14 May 2014 01:38:18 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Xref csiph.com comp.lang.java.programmer:28464

Show key headers only | View raw


Em terça-feira, 13 de maio de 2014 21h37min07s UTC-3, Arne Vajhøj  escreveu:
> On 5/13/2014 2:37 PM, William Lopes wrote:
> 
> > Hi, I'm building a network test with source code (basically) here: http://toolongdidntread.com/android/android-multipart-post-with-progress-bar/
> 
> >
> 
> > My server contains a php script that contains just a field with name = $_FILES['uploaded_file']['name']
> 
> >
> 
> > But, this java script file isn't very good, it is using the io lib, and I want change to the nio lib, because of the perfomance.
> 
> >
> 
> > My doubt is, how do I can set the field 'uploaded_file' or create a channel that connects with it?
> 
> 
> 
> Why do you expect a file upload to be faster client side with NIO?
> 
> 
> 
> Arne

Because I read about this and I found that nio is it a better way, more efficient, like the native languages. I made tests in LTE network and the values are too lower than expected (using io lib). I did a download test on nio and was much better comparing with io lib, so I suppose that is a better ideia make on upload too.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Upload using java nio William Lopes <williamlopes.dev@gmail.com> - 2014-05-13 11:37 -0700
  Re: Upload using java nio Arne Vajhøj <arne@vajhoej.dk> - 2014-05-13 20:37 -0400
    Re: Upload using java nio William Lopes <williamlopes.dev@gmail.com> - 2014-05-13 18:38 -0700
    Re: Upload using java nio William Lopes <williamlopes.dev@gmail.com> - 2014-05-13 18:38 -0700
      Re: Upload using java nio Arne Vajhøj <arne@vajhoej.dk> - 2014-05-13 22:00 -0400
        Re: Upload using java nio Arne Vajhøj <arne@vajhoej.dk> - 2014-05-13 22:08 -0400
          Re: Upload using java nio William Lopes <williamlopes.dev@gmail.com> - 2014-05-13 19:35 -0700
            Re: Upload using java nio markspace <markspace@nospam.nospam> - 2014-05-13 20:22 -0700
              Re: Upload using java nio William Lopes <williamlopes.dev@gmail.com> - 2014-05-14 11:35 -0700
  Re: Upload using java nio Josip Almasi <joe@vrspace.org> - 2014-05-14 13:46 +0200
    Re: Upload using java nio William Lopes <williamlopes.dev@gmail.com> - 2014-05-14 11:38 -0700

csiph-web