如何从android中的webservice来自byteArray显示图像?

时间:2011-04-14 17:17:42

标签: android bytearray imageview

朋友,

我正在接受来自dotnet服务的webservice响应。

<Bank>
               <bankID>1</bankID>
               <bankName>AIK Banka</bankName>
               <imageByte>R0lGODlhlgBQAPcAAKPBqfP69Ja0m32hgxdVJdrb28zMzPr+/QRKEdPi1IGliL3PwCFXLP38+YSJhPr7+gBFDGWHbQ1SGnSYe39/f4unkZKslrnVvOLr4ghMFMPEw8vbzQxMGDxqRM7a0ChdNHKEdvHx8N7o36urq5u7oPX29fj69qG+pYKZhNHc0sPSxf/8///6/aOko0N1TUh7UZydnLS1tV6CZBNSHbrNvWuWdLy7vP7//PLz8MzQzfb+9u3t7RFLG+328MPLxCphM/n++Pv+/uPy4+Xl5dHR0f36+arGsOLh4aS7qFKAWpKUlAREEkxXTe7x7lJ5V/v/+8fmzNbV1m2Pdfv7/tXr09ri2yU0I/Dt7mdrZf/8++Dl37TKuenp6RVNIQA9CfD28Qk5EjU9NbvAvApQFsfJyNXl17HKts/g0r7Ivt7r3+317QIXAzZiQObq5tbr2SxkOKq/ru/26/v6/FyJZezi67DDshQ7GWd1aJvEo/Xx8tfX1q2ys7W3s9bSznekgOTu51aDX/n0962nqfr2+GGLaOrm5I60lLe6tKa3qAhHFFZjVautsen27qOzpsbCx7e7uCNeLubx58XezPD39AQnCJebmj1WQNHO0F6QaXV+dA5UHiZgLkNvSejz6fTz8xUrFwdNF5SYluPl4fDv71eJY4eujv///7jMtun06rGyro6ekAxCF9TS0mSRbNLU0qapppudoJ6hn+nu6O3r7ePk5N/f4O3z6y5oPMbRy9fU0g9XHARQEhk5HwhTGSxJM16GZ/Ly88nGxkFGP8K+v/7+/v39/fz8/P/+//7//////f7+//7//v39/Pz9/v/9/vz8/fz9+/78/f38/Orz5+bj4cfHy8nMxMHYwcrVyu3u8nR1dcHhx7Gws+f85MDBwfT18a6urqOmpnRxb6Wvq6qip6ipqKScoLXBudzd3r/FtD9vTePg3rDSsz5IPufn57a3uO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bankID>
               <bankName>Credy Banka</bankName>
               <imageByte>R0lGODlhlgBQAPcAAJGis8zT2e3t7by7u8vLy2uHpBU3WLW0s9vc3Y2kusLDw2J2itPT0/z8/K28zJOUleru8jJag5WepZSgq0dskdPb431+f3mTroSFh7K7xFtyiCVNda6zuSlTfFNshYWdtKq1wZqquvPz8+Hm69zi6RtDatHV2szR1tze4ERjgeDg4UtrjGyDm7jG09XZ3IqdsZWpvgUsVPj4+Aw0XGN6kfr6+ktjenuWsXGKo1x8nBQ8ZMnO1GRsde7x9YWLkXWRrPT2+N7g4+bm5pGmuoeSnH2Ys6Wyvoqaq/n28sPIzougtUxwlLO+yZuptkNdeLLB0E1ZZbrCyvH09uTp7l14k1Nzk/T09JyuwHqCijZRa6WsspimtFlibL7GzmlyfCtMba25xOjo6HKIn6aprPb4+S9RcwEkSVZldYCVqqCtuujm44WZrerq6qSzw2R+mamsr7fAyAAiRfb29nqLnEtphjxbe8PP2vLy80RqjgAXPPr39cHK0zVNZaOko3KGmkpmgnN8hX2RpOvo5YOSosTK0LvI1T1ZdMDGzOzr6WWBnnGNqc3W3/Px77i9wnJ2e2p9ke/v8P37+fb08+Ph3yBCY//9+sfM0vXz8MfR2/r7/Kuwtk5ebFh2lDtfhFBcZ3eOpL3BxbjCzf/+/AAdQgstTzRWd+Ll5ypCWUpXY8bN1G2BlLG2ufv8/dDOzb7L2MfGxXCDluDf3fX29r++vr3EyyJIbqiutP////z+/lF1mJ+mrefr8EJmiqqppz9SZGBnb6S2yDdYevr5+NrZ1x08XPPx8bvDzLq4t+/s6fn6+7GvrgMoTS1KZyBFaunp6f39/dHQ0MLM18rIxxExUent8O/u7ebk4bi2tf/9/PPy8ePi4ePj5I2ap6i5yVd4mSdGZP7+/v///fHx8f7//4aXp/v7+//+/+fn6MHBwJ2enk9vjsDI0P/+/f3+/o2WoPn5+fv6+fLy8jpVb9jf5tbV1HiImMHL1cTL0/P19/X19ejp6+jq68jJyevp6UJYbH9/fyH5BAAAAAAALAAA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KcAyvIATJoAKzoKIDwAByMBPDqRHlgFU7InFWIAJWAEyNGKdxJVd4mqd4mg/5YIMU8QxykKd0uhHvEKd4agX5UAPbIVee/8MYDZAPeioCchAijyoHgSpXk3oL5WCoctWnpSEHdyoDmckSa/pRpsp6p5qqMdFTUmBcFdEAJFABPRAXGwEEZHALU2AzI2AVGAEBu1YRPVABu3ARPcAK4AABF5EJPWAREDAPFUAazdcDEdgDbDkRvkqsFeCqamgSzxAVFkEC3vABRQCtGvEEmFAISnCrEwEE3qAEP+AKFTEO8BYKFlFbH/ADJFARz5AAU0AGP3AR8zAEFcEKrvUBdkAR7QADLQAOH4AJFSEFOdACFrELe/UBy7qtJTEFrhWBFFEBMDAOT9ANHFEIMKAEFzsRPXADtxANAlsRdvABCWAR3SCyJECu9f/Fr2RwARdBAh9LEckADCNAqxThCjAABDeADy4LsxbxBBK7CMiKsSLhCjfwAw7bsTFbAVewEeDQAhSQtRVBBg6VA1MQryWrCDYLDBVgBwWAWxQBDgmwC8mgs98KAxWBCwlQAD9wsBSxCwrbshQxBEpgthWBtqWRCagqEm77AR/QsxNRATHbDU/AESELA3qLskWAD0owrBQBAReQAD9QCBXhAFlbCF77f0MwD9n2tYuwCHTrs8BADUI7EftaAFVrrZ37uaErssCQr1CrEeAkBSpbDjdwBxQxAt7wA+nKES3gtBdwslJQBLdgB62bW6x7C4swBNYBBIF7A7xLEYugCIqvULusBQM5ULm3kLAFoAhsSxEt4A3aCg7Ve73W0QMfgAMwoK4Q2RHgwBjWAQ6sMBENYCBkIAV+VxHtwJ7JwJ5/OhEcOxGs8L82ahHtIAUN/LXVKrsXbKP4IAX4SxEQ7ME84qceLAUK3LsYsb+nsb8hMaqqahQ91cIwDFIxPMP5S8M27BilesM2/MI6zFM53MMxzMNAfFdD3MNCXMQE9MNIfKoR0cRO/MRQHMVSvBABAQA7</imageByte>
            </Bank>

如果我在String中收到imageByte,我该怎么做才能在imageview中显示它? 任何帮助将不胜感激。

2 个答案:

答案 0 :(得分:0)

我使用了下一个代码来保存来自网络的图片:

DefaultHttpClient httpClient = new DefaultHttpClient();
HttpGet request = new HttpGet(url);
HttpResponse response = httpClient.execute(request);
InputStream input = response.getEntity().getContent();
Bitmap bitmap = BitmapFactory.decodeStream(input);

要将String转换为字节数组,您可以阅读this主题。

答案 1 :(得分:0)

在字符串构造的ByteArrayInputStream上尝试Drawable.createFromStream