24
Base64.encodeBase64("foobar".getBytes());
(android.util.Base64を使用して)サンプルB:
Base64.encode("foobar".getBytes(), Base64.DEFAULT);
これらは同じ文字列を生成ください?
Base64.encodeBase64("foobar".getBytes());
(android.util.Base64を使用して)サンプルB:
Base64.encode("foobar".getBytes(), Base64.DEFAULT);
これらは同じ文字列を生成ください?
いいえ、デフォルトの設定では、AndroidのBase64にはラインターミネータが含まれています。 Apacheエンコーディングと同じ結果を得るには、Base64.NO_WRAPを使用します。
私はあなたに+100のアップフォートを与えることができました。 –
あなたは男です –
android.util.Base64.decode()のホールドは同じですか? –