gpt4 book ai didi

android - 如何将 byte [] 转换为 drawable?

转载 作者:行者123 更新时间:2023-11-30 03:31:44 26 4
gpt4 key购买 nike

<分区>

我有一个字节数组,我需要将其转换为 Android Drawable。

如何执行此转换?

我已经试过了,但没有用:

fileDatabyte[] 数组

Drawable image = null;
image = new BitmapDrawable(BitmapFactory.decodeByteArray(fileData, 0, fileData.length));

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com