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.
Nettyが http 経由で Image を処理する方法を教えてください。サンプルやチュートリアルはありますか?
基本的に私は知りたい:
1) クライアントがアップロードした画像を受け取る方法
2) httpレスポンスで画像を返信する方法
アップロードされたファイルを受信する例を次に示します。
これは、画像ファイルを含むあらゆるタイプのファイルを提供するための例です。
お役に立てれば。
画像データは他のデータと同じです。Content-Type に関して意味のあるバイト (正確にはオクテット) のストリーム (例: image/jpeg)。Content-Encoding は、圧縮/解凍を処理するのに役立つ場合があることにも注意してください。netty.io のサンプル ソースには、十分な情報が含まれているはずです。