@niloc132 the code is from 2013. I don't remember exactly anymore what was the reason. Yeah we have our own base64 implementation. But If I remember correctly the problem was in ABase64.createString(byte[] bytes)
which only uses new String(bytes, IStandardEncoding.STANDARD_ENCODING)
public static String createString(byte[] bytes) throws UnsupportedEncodingException {
return new String(bytes, IStandardEncoding.STANDARD_ENCODING);
}
I also remember that System.arraycopy() was always slow in GWT. But this seems to be fixed in the trunk now.
Is there any way to send an arraybuffer (provided through JS File API, wrapped into an Uint8Array) via GWT-RPC as byte array?
I got a workaround for this
@JeffQuesado_twitter Thanks, yes that would work although I am trying to avoid copying given that the file might be large.
Intl.DateTimeFormat
through JsInterop, or have a look at https://github.com/treblereel/gwt-datetime (available on Vertispan's repository)
byte[]
type back, then you must instantiate the byte[] in java and copy the values over