摘要:
1、调用图片浏览器:Intent getImage = new Intent(Intent.ACTION_GET_CONTENT);getImage.setType("image/jpeg");startActivityForResult(getImage, 0);protected void onActivityResult(int requestCode, int resultCode, Intent intent) { // TODO Auto-generated method stub if (requestCode == 0) { ... 阅读全文
摘要:
1、8个必要的包,添加到WEB-INF/libcommons-fileupload 组件下载:http://commons.apache.org/fileupload/commons-io组件下载:http://commons.apache.org/io/2、表单页面:(1)enctype="multipart/form-data"form的enctype属性为编码方式,常用有两种:application/x-www-form-urlencoded和multipart/form-data,默认为application/x-www-form-urlencoded。 当acti 阅读全文