开发者

How to uploading an image showing it on the same page?

I am working on a JSP project where the user needs to upload an image. I need this image to be stored into the database so that it can be retrieved from the database later on. I need to show that image in the webpage itself as soon as the image has been loaded. I have tried several option like uploadbean, spring-3-mvc-fileupload-example.html, etc but nothing is working out for me.

Can you please give me a simple but effective way 开发者_如何学Cto do this? I am working with MySQL database.


Apurv I suggest you look at this library

http://commons.apache.org/fileupload/

The user guide is at http://commons.apache.org/fileupload/using.html


Try this one: http://commons.apache.org/fileupload/. It is simple and works fine. Although Spring also has wrapper for this component and I used it either directly or via Spring and both worked fine for me.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜