我正在使用Glide在我的应用中加载图片,我在从包含; 的网址加载图片时遇到了一些问题。图像路径类似于
https://adbutler-fermion.com/getad.img/;libID=502532
抛出 Glide异常无法加载资源。除了在Url中具有特殊字符; 的图像外,所有其他图像都正常加载。我的堆栈跟踪如下
com.bumptech.glide.load.HttpException: Bad Gateway
at com.bumptech.glide.load.data.HttpUrlFetcher.loadDataWithRedirects(HttpUrlFetcher.java:118)
at com.bumptech.glide.load.data.HttpUrlFetcher.loadData(HttpUrlFetcher.java:53)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:61)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:275)
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:245)
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:220)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:347)
我试过
Glide.with(context).load(imageUri).into(postImage);
同时使用字符串url和uri。我该如何解决这个问题。