Я пытаюсь загрузить файл jpg с помощью Glide. Файл защищен носителем. Я попробовал следующее. Бесплатные изображения без защиты носителя работают должным образом.
Load failed for https://myPictureUrl.jpeg with size [-2147483648x-2147483648]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
There were 4 causes:
java.io.IOException(java.lang.RuntimeException: setDataSourceCallback failed: status = 0x80000000)
java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
java.io.IOException(java.lang.RuntimeException: setDataSourceCallback failed: status = 0x80000000)
java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{DirectByteBuffer->Bitmap->Bitmap}, DATA_DISK_CACHE, https://myPictureUrl.jpeg
There was 1 cause:
java.io.IOException(java.lang.RuntimeException: setDataSourceCallback failed: status = 0x80000000)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->Bitmap->Bitmap}
There was 1 cause:
java.io.IOException(java.lang.RuntimeException: setDataSourceCallback failed: status = 0x80000000)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class java.io.IOException: java.lang.RuntimeException: setDataSourceCallback failed: status = 0x80000000
Cause (2 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{FileInputStream->Bitmap->Bitmap}, DATA_DISK_CACHE, https://myPictureUrl.jpeg
Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->Bitmap->Bitmap}
Cause (3 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{ParcelFileDescriptor->Bitmap->Bitmap}, DATA_DISK_CACHE, https://myPictureUrl.jpeg
There was 1 cause:
java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{ParcelFileDescriptor->Bitmap->Bitmap}
Я пытаюсь загрузить файл jpg с помощью Glide. Файл защищен носителем. Я попробовал следующее. Бесплатные изображения без защиты носителя работают должным образом. [code]suspend fun downloadUrlToBitmap(accessToken: String, bitmap: (Bitmap) -> Unit) { val glideUrl = GlideUrl( imageUrl, LazyHeaders.Builder() .addHeader("Authorization", "Bearer ".plus(accessToken)) .build() )
override fun onLoadCleared(placeholder: Drawable?) { Timber.d("onLoadCleared") } }) } [/code] В Logcat я вижу следующие ошибки [code]Load failed for https://myPictureUrl.jpeg with size [-2147483648x-2147483648] class com.bumptech.glide.load.engine.GlideException: Failed to load resource There were 4 causes: java.io.IOException(java.lang.RuntimeException: setDataSourceCallback failed: status = 0x80000000) java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000) java.io.IOException(java.lang.RuntimeException: setDataSourceCallback failed: status = 0x80000000) java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000) call GlideException#logRootCauses(String) for more detail Cause (1 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{DirectByteBuffer->Bitmap->Bitmap}, DATA_DISK_CACHE, https://myPictureUrl.jpeg There was 1 cause: java.io.IOException(java.lang.RuntimeException: setDataSourceCallback failed: status = 0x80000000) call GlideException#logRootCauses(String) for more detail Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->Bitmap->Bitmap} There was 1 cause: java.io.IOException(java.lang.RuntimeException: setDataSourceCallback failed: status = 0x80000000) call GlideException#logRootCauses(String) for more detail Cause (1 of 1): class java.io.IOException: java.lang.RuntimeException: setDataSourceCallback failed: status = 0x80000000 Cause (2 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{FileInputStream->Bitmap->Bitmap}, DATA_DISK_CACHE, https://myPictureUrl.jpeg Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->Bitmap->Bitmap} Cause (3 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{ParcelFileDescriptor->Bitmap->Bitmap}, DATA_DISK_CACHE, https://myPictureUrl.jpeg There was 1 cause: java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000) call GlideException#logRootCauses(String) for more detail Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{ParcelFileDescriptor->Bitmap->Bitmap} [/code] Заранее спасибо