出現Can not find a java.io.InputStream with the name的錯誤,是因為InputStream為null的緣故,可能是前臺jsp頁面中href="download.action?filename=img3-lg.jpg 沒有傳值
2018-01-26
function showPreview(obj){ var pic = document.getElementById("previewImg");var file = document.getElementById("myFile").files[0]; var reader = new FileReader();reader.readAsDataURL(file); reader.onload = function(e){
pic.src=this.result;適用于谷歌瀏覽器
}
}
pic.src=this.result;適用于谷歌瀏覽器
}
}
2018-01-11