Git Product home page Git Product logo

coreprogress's People

Contributors

lizhangqu avatar swankjesse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coreprogress's Issues

build error

compileSdkVersion global_compileSdkVersion
buildToolsVersion global_buildToolsVersion 

在你的代码里都是使用 global配置的一些编译环境,请问这个是需要替换吗?还是直接改变

上传二三十兆的文件会报错,必现,请问有什么解决办法吗

log如下:
08-16 16:40:52.986 4527-4527/io.github.lizhangqu.sample E/TAG: onUIProgressStart:25930457
08-16 16:40:53.002 4527-4527/io.github.lizhangqu.sample D/TAG: =============start===============
08-16 16:40:53.003 4527-4527/io.github.lizhangqu.sample D/TAG: numBytes:8192
08-16 16:40:53.004 4527-4527/io.github.lizhangqu.sample D/TAG: totalBytes:25930457
08-16 16:40:53.004 4527-4527/io.github.lizhangqu.sample D/TAG: percent:3.1592193E-4
08-16 16:40:53.004 4527-4527/io.github.lizhangqu.sample D/TAG: speed:0.0
08-16 16:40:53.005 4527-4527/io.github.lizhangqu.sample D/TAG: ============= end ===============
08-16 16:40:53.028 4527-4527/io.github.lizhangqu.sample D/TAG: =============start===============
08-16 16:40:53.028 4527-4527/io.github.lizhangqu.sample D/TAG: numBytes:491520
08-16 16:40:53.028 4527-4527/io.github.lizhangqu.sample D/TAG: totalBytes:25930457
08-16 16:40:53.028 4527-4527/io.github.lizhangqu.sample D/TAG: percent:0.018955316
08-16 16:40:53.028 4527-4527/io.github.lizhangqu.sample D/TAG: speed:4603.0
08-16 16:40:53.028 4527-4527/io.github.lizhangqu.sample D/TAG: ============= end ===============
08-16 16:40:53.126 4527-4527/io.github.lizhangqu.sample D/TAG: =============start===============
08-16 16:40:53.126 4527-4527/io.github.lizhangqu.sample D/TAG: numBytes:1458176
08-16 16:40:53.126 4527-4527/io.github.lizhangqu.sample D/TAG: totalBytes:25930457
08-16 16:40:53.126 4527-4527/io.github.lizhangqu.sample D/TAG: percent:0.056234106
08-16 16:40:53.126 4527-4527/io.github.lizhangqu.sample D/TAG: speed:8479.0
08-16 16:40:53.127 4527-4527/io.github.lizhangqu.sample D/TAG: ============= end ===============
08-16 16:40:54.008 4527-5008/io.github.lizhangqu.sample D/TAG: =============onFailure===============
08-16 16:40:54.020 4527-5008/io.github.lizhangqu.sample E/TAG: java.net.SocketException: sendto failed: EPIPE (Broken pipe)
at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:542)
at libcore.io.IoBridge.sendto(IoBridge.java:511)
at java.net.PlainSocketImpl.write(PlainSocketImpl.java:500)
at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:37)
at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:266)
at okio.Okio$1.write(Okio.java:79)
at okio.AsyncTimeout$1.write(AsyncTimeout.java:180)
at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.java:171)
at okio.RealBufferedSink.write(RealBufferedSink.java:41)
at okhttp3.internal.http1.Http1Codec$FixedLengthSink.write(Http1Codec.java:286)
at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.java:171)
at okio.RealBufferedSink$1.write(RealBufferedSink.java:193)
at io.github.lizhangqu.coreprogress.ProgressOutputStream.write(ProgressOutputStream.java:39)
at okio.Okio$1.write(Okio.java:79)
at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.java:171)
at okio.RealBufferedSink.writeAll(RealBufferedSink.java:99)
at okhttp3.RequestBody$3.writeTo(RequestBody.java:120)
at okhttp3.MultipartBody.writeOrCountBytes(MultipartBody.java:173)
at okhttp3.MultipartBody.writeTo(MultipartBody.java:114)
at io.github.lizhangqu.coreprogress.ProgressRequestBody.writeTo(ProgressRequestBody.java:54)

采用PUT方式上传失败

需要修改ProgressRequestBody中的writeTo方法,每次创建一个新的BufferedSink对象才行,否则失败

请问消息头如何添加呀?不好意思,新手

之前用的OkHttp添加消息头是
.addHeader("k", "v");
但是在您这边好像不一样,
.addPart(Headers.of("Content-Disposition", "form-data; name="another";filename="another.dex""),
RequestBody.create(MediaType.parse("application/octet-stream"), videoFile))
有点看不太懂,您能帮忙解释一下吗?谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.