您的当前位置:首页正文

【Android】Base64转图片

2024-11-01 来源:个人技术集锦

一、标准的Base64图片格式

data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gIoSUNDX1BST0ZJTEUAAQEAAAIYAAAAAAQwAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAAHRyWFlaAAABZAAAABRnWFlaAAABeAAAABRiWFlaAAABjAAAABRyVFJDAAABoAAAAChnVFJDAAABoAAAAChiVFJDAAABoAAAACh3dHB0AAAByAAAABRjcHJ0AAAB3AAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAFgAAAAcAHMAUgBHAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA+EAAC2z3BhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABYWVogAAAAAAAA9tYAAQAAAADTLW1sdWMAAAAAAAAAAQAAAAxlblVTAAAAIAAAABwARwBvAG8AZwBsAGUAIABJAG4AYwAuACAAMgAwADEANv/bAEMAAwICAgICAwICAgMDAwMEBgQEBAQECAYGBQYJCAoKCQgJCQoMDwwKCw4LCQkNEQ0ODxAQERAKDBITEhATDxAQEP/bAEMBAwMDBAMECAQECBALCQsQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEP/AABEIAMgBLAMBIgACEQEDEQH/xAAcAAACAgMBAQAAAAAAAAAAAAACAw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jHygNlP271e+XjXcYBrqhF5XuaBr2Ov7O1be7/DC8U1ITi9ITh+IvEHT8m74gsqHzGAtKly3qULuNlroul+JfEeNhYWJYvqos5BywWSIuGeT7SeKrsPG6pljyreC2kxuw4q3XoGaVVsrUwURpHEU5c8YeguKUsUbz+p9U6sb+R1DMN69cuNevEABAx7gj+UfFUiF2AVVkHiunTpN17At6AtvstZb6IU/+nXJzc75dm8OP4znltXTH7Ka1kYd3Zxbgd66Q9PVInatPjWwGtldyNq59nRGVqjm1xjcT9EHtW0xWjdZq4S0qDT3B3rGRQfTWfXFsor7WJqGnTxQriFXKQu+4qyQaRHvS7qxuOBvRS64AgNiCPWO9L8oW+BK96mlwbkH2qJfYkkAbVIJNhgIYk/eigTzIioa3mViO1NW8OG4NXGSeGDwMYRup/wD1rekNuX0/FZMAaRt3pqQV2Y1olYpS6lzYxr107ipnk2rAh33rKyuiEItDYJcNsBArcIIJEmsrKyluhEi3bRlnRHzRhEc6bYPprKytYwTWRokJjJExvRHHU7DtWVlPpESNflgREzTbWGBuTtWVlPpEBhxQeJHxTbGEw3AO9ZWU48cWyW2S1xipAIO9NFtlMjtsKysrborMWLuF50ldQPxUe/i4jp+0xrbfVRWVlc/JBWy4lVk9A6LeYh8C0CfZaWPBfh+4pLYSCsrK5so2pNGW/BHhwAg4o+1Yngvw+J04an61lZVxyiWkG/hro9tNNvDRRSrPTsCw8W8VNu8VlZUS2OJKshEf/LUe1ZkSCdufasrKRQlWLIYO9CgYfq3rKynRnNITftFzK9qjXsdnG5gjefisrKbVERK66AtwgUtmIWf6VlZWU206RsiMcgM2lGO1H5mpd+9ZWVK2VJJaE3A+slVjakXbbBSQJ96ysoUU3klEYISSQNxTkXWAun7isrKuMUVJJodZsMG03ODUlMNo9J2rKyujjipbMOTZ/9k=

二、Base64转Bitmap放入imageView

注:仅转化逗号之后的Base64字符串

// 解码Base64字符串为字节
byte[] decodedBytes = Base64.decode(imgStr.split(",")[1], Base64.DEFAULT);
// 将字节创建为Bitmap对象
Bitmap bitmap = BitmapFactory.decodeByteArray(decodedBytes, 0, decodedBytes.length);
viewBind.imageView2.setImageBitmap(bitmap);
显示全文