Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ブラウザでXHR(AJAX)を介してバイナリを送信するためのユビキタスなサポートはまだないため、base64エンコーディング(Content-Encoding: base64おそらくHTTPヘッダー付き)でPNG画像を送信する必要があります。
Content-Encoding: base64
ジャージー側でbase64でエンコードされたデータをデコードする正しい方法は何ですか?
のいずれかのdecode方法を使用しcom.sun.jersey.core.util.Base64ます。Apache Commons Codec を取り込み、その DigestUtils クラスを使用することもできますが、Jersey ライブラリを既に使用している場合はまったく不要です。
decode
com.sun.jersey.core.util.Base64