Downloading files with Java

前端 未结 2 1770
青春惊慌失措
青春惊慌失措 2021-02-04 01:11

I\'ve written a bit of code for downloading an episode of a webcast I do. It gets the URL of the episode and gets the place to save it. However, it only downloads up to 16MB and

2条回答
  •  礼貌的吻别
    2021-02-04 01:39

    A quick look at the documentation of transferFrom:

    public abstract long transferFrom(ReadableByteChannel channel, long position, long count)
    

    WELL.

    The value 1<<24 for the count (from the original question) equals 16M

    I guess that's the answer to your question :-)

提交回复
热议问题