0
我的Spring應用程序將圖像文件傳遞給Jersey應用程序以擺脫所有圖像處理任務。在服務器之間傳遞圖像以進行遠程保存
在接收圖像時,澤西島應用程序應該在多次操作(裁剪,調整大小等)後保存圖像並返回圖像url。
爲此,Spring應用程序在一個JSP文件中的以下表格:
DataInputStream in = new DataInputStream(request.getInputStream());
什麼會是一個簡單的方法:
<form method="POST" action="/asdf" enctype="multipart/form-data">
<input type="file" name="fstream"></input>
<input type="submit" value="Upload"/>
</form>
在我的春天控制器,我開始使用DataInputString執行上面提到的所需操作? 如何在Spring應用程序中將其轉換爲BufferedImage,將其發佈到澤西島應用程序,執行所需的操作並保存圖像?
如果這很好,我該如何將DataInputStream轉換爲BufferedImage?
在此先感謝。