我正在向Magento传播图像,并利用android.util.Base64
绘制图像。 采用以下两种方法:
Base64.encodeToString(content, Base64.CRLF)
Base64.encodeToString(content, Base64.DEFAULT)
But I always receive fault:
The image contents is not valid base64 data
Working: I found that the data had to be encoded twice, one time using Base64 and another encoding using custom Library