0
接收上傳的文件,我想返回一個文件表示上傳的文件我推翻了receiveUpload梅索德後:如何從一個OutputStream獲得要恢復的文件上傳的文件
/**
* Invoked when a new upload arrives.
*
* @param filename
* the desired filename of the upload, usually as specified
* by the client.
* @param mimeType
* the MIME type of the uploaded file.
* @return Stream to which the uploaded file should be written.
*/
public OutputStream receiveUpload(String filename, String mimeType);`
那麼什麼是最好的方式返回一個new File
對象。
請顯示您嘗試的代碼不只是簽名。 – sunleo