02-14-2013 09:19 AM
I see that there is a limit with Base64.decode:
So your stream code should get round this issue.
Can you tell me how you are getting on with my comment that the logic is not correct?
02-14-2013 01:01 PM
Is slow reply.
data = Base64OutputStream encode (. dataEncoded, 0, dataEncoded length, false, false);
It was no good I tried this(b).
I catch the same error.
ByteArrayInputStream bis = new ByteArrayInputStream(m_RawData, iFileStart, iLen);
Base64InputStream b64 = new Base64InputStream(bis);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
byte[] buff = new byte[1024]; // faster than byte-at-a-time
for (int len = b64.read(buff); len != -1; len = b64.read(buff)) {
bos.write(buff, 0, len);
}
bDecodedFile = bos.toByteArray();
I was spoiled already try this code.
Large size of image data normally stored the how is the best?
data:image/png;base64,
I want to teach you how to properly save files in this format.
02-16-2013 12:16 AM
I have found the source of restriction.
I think there is a limit to pass as an argument to a function by ivoke.