这次完整地介绍图片上传的完整解决方案,如有bug,后续再补充。一、图片表CREATE TABLE `photo` (
`id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
`bizid` bigint(11) NOT NULL DEFAULT '-1' COMMENT '业务id,比如项目的id',
`cover` int(11) DEFA...
分类:
Web程序 时间:
2015-10-27 13:28:19
阅读次数:
261
int size = list.size();
Integer existIndex = -1;
for (int index = 0; index < size; index++) {
Photo photo = list.get(index);
// 确保不会出现多个主图:如果已经找到了主图,把后面的都设置为“非主图”,防止前端验证失败,出现多个主图的情况
...
分类:
编程语言 时间:
2015-10-26 12:15:50
阅读次数:
224
代码里面有详细的解释,我就不多说了 1 //处理并保存图像 2 private File dealPhoto(Bitmap photo){ 3 FileOutputStream fileOutputStream = null; 4 //图片的名称,已时间命名 ...
分类:
移动开发 时间:
2015-10-24 11:20:59
阅读次数:
186
参考资料:SAE mail api 文档怎么使用?参见代码:fetch( 'http://ss7.sinaimg.cn/bmiddle/488efcbbt7b5c4ae51ca6&690' );$mail->setAttach( array( 'my_photo' => $img_data ) );...
分类:
移动开发 时间:
2015-10-23 13:31:11
阅读次数:
343
上一篇写了关于调用系统相机并裁剪,这一片写关于调用系统相册裁剪照片btn_album.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent...
分类:
移动开发 时间:
2015-10-20 17:53:01
阅读次数:
231
Customer Problems & NeedsPeople may take a large number of photos and their phone don't have enough space to store them, however some of the photos ar...
分类:
移动开发 时间:
2015-10-19 22:23:40
阅读次数:
194
Background: Our smart phones are the most widely-used cameras now, more and more photos are taken by our phones. You may find that there are so many p...
分类:
其他好文 时间:
2015-10-19 18:58:15
阅读次数:
171
HighGUI是图形用户界面模块。包括:1、输入与输出;2、视频捕捉;3、图形和视频的解码编码;4、图形交界面与接口。由于opencv.hpp包含了core、objdetect、ingproc、photo、video、featurse2d、calib3d、ml、highgui、contrib等模块。...
分类:
其他好文 时间:
2015-10-16 13:09:59
阅读次数:
213
一、View中model的关联1.当关联单一对象时,需要关联相应命名空间下的模型对象@model MvcMusicStore.Models.Album显示: @Html.DisplayNameFor(model => model.Title) 2.关联对象集合时,则需添加IEn...
分类:
Web程序 时间:
2015-10-12 22:34:38
阅读次数:
197
http://blog.csdn.net/mr__fang/article/details/8874411 http://jingyan.baidu.com/album/a378c9609eb652b3282830fd.html?picindex=1 https://www.baidu.com/s?wd=Access%20denied%20for%20user%20%27root%27%40...
分类:
数据库 时间:
2015-10-06 23:50:41
阅读次数:
425