在Android中将PNG ImageData映射到位图

时间:2015-07-27 21:34:02

标签: java android bitmap

我有一个字符串说,

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQCAYAAAByNR6YAAAgAElEQVR4nO2dTXLiWraFNRn3H9B+2VEA/WvUxmZExYMWnUIzYRgaRXXuAO5rWGQpsYWw9cPa63w7whEVmbcWa337HOUJWWxlGUVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEWNW6ti9/e62FWrze603GzzR/9/y802X212p3Wxq1bF7u+f6szO+3xeHk6L8ljNy+Pf8/L498f/Ppxm531YP6658JNmLvykmQs/aebCz0A662L3T/NnVbxflq9vL61BX99eVsX75fb/912d//n3/mVeHi6L8vjPvZ95ebj8z7/3Yfy45sIPfcdPOrnwQ9/xM4BOi+H/5Ju3/70Vzzdv/7sudv/pCtulM//3//3vvDz+p8vkf80e/zP/9//J+3HNhR/6jh/6jh/vXPi572d2/tev7+q0HbD+WRe7/zRPhMvXt5dvhv1S5+ME+LjJptnmyVLNj2su/NB3/NB3/Hjnws84fb93wPpnVbxfrh/wyG26R3Qeub3WHvog68c1F37oO37oO368c+FnnL7fPWCti90/y802X262+U/DNnVm533+07DXn9l5L+fHNRd+6Dt+6Dt+6HvKfvrodB6wVpvdqX56v1fg1WZ3qp+67xV4Xh7k/Ljmwg99xw99xw99T9lPH53OA9a62FX1T6/A62JXLcpj1TfwojzK+XHNhR/6jh/6jh/6nrKfPjrdd7D+O3OiV+BVsbvOiugVeF4e5fy45sIPfccPfccPfU/ZTx8dDlhsPPzQd/zQd/zQd/wM3Hd+RTiAH9dc+KHv+KHv+KHvKfvpo8ND7gP4cc2FH/qOH/qOH/qesp9RH3JnTEO3H9dc+KHv+KHv+KHvKfsZbUwDg0Yf9+OaCz/0HT/0HT/eufAzTt95VQ6vUMAPfccPfccPfcfPwH3nZc8D+nHNhR/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anzINU0udGLpcP2B87P4dB6w1sWuWpTHqq/RRXms1sWu6gtO0Y+rjivnoXKp8SHXNLnQiaXD9QfOz+LTfQer2F1nPPQyOi+P19kVvcAp+nHVceU8VC41PuSaJhc6sXS4/sD5WXw4YAktCDUdV84KG095X5ALHScdrj9wfhYffkU4gB9XHVfOQ+VS40OuaXKhE0uH6w+cn8WHh9wH8OOq48pZ4eFH5X1BLnScdLj+wPlZfBjTMIAfVx1Xzgpf31XeF+RCx0mH6w+cn8WHQaNig9HUdFw5P3sAnfq+IBc6Tjpcf+D8DD68KkdstL+ajivnZ79CQX1fkAsdJx2uP3B+Bh9e9jygH1cdV86uL0kl1zS50Imlw/UHzlPz+XTAWhXvl+YJ8LY+TnLdt8vm5eHSPAHe1vL17eWR24DR/LjquHIeKpcaH3JNkwudWDpcf+A8KZ965kS12uxOy802bxO+rdl5n9dP11eNWRHVvDycZuf9wzrLzTavvzVQNWZghPfjquPKeahcanzIhQ46n4vrzzQ6cKYoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqIoiqKoUev/AdQM3+e8Q/KtAAAAAElFTkSuQmCC  

如何从这些数据中获取位图?

1 个答案:

答案 0 :(得分:3)

首先在逗号后输入字符串,然后执行以下操作:

byte[] decodedString = Base64.decode(encodedImage, Base64.DEFAULT);
Bitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);