图片压缩:
NSData *imageData
= UIImageJPEGRepresentation(self.uploadImage
, 0.55);
NSString
*file_name = [TimeUtil getDateStringWithFormat:@"yyyy-MM-dd"];
NSString
*upload_name =[NSStrin...
分类:
其他好文 时间:
2014-07-24 23:36:03
阅读次数:
248
通过Canvas及File API缩放并上传图片 上 传 MegaPixImage.js/*** Mega pixel ...
分类:
Windows程序 时间:
2014-07-24 12:21:25
阅读次数:
2203
上传图片的方式有两种,一种是使用传统的html控件的方式,设置form属性为multipart/form-data。这种方式兼容ie6,ie7。另一种方式是使用data:uri,将base64编码从浏览器端post到服务器端,然后利用Base64解码即可。这种方式只是用与比较modern的浏览器.....
分类:
其他好文 时间:
2014-07-23 16:51:11
阅读次数:
338
view参数@csrf_exemptdef before_upload_avatar(request): before = True return render_to_response('accounts/before_upload_avatar.html', {'before': before},...
分类:
其他好文 时间:
2014-07-23 12:34:46
阅读次数:
271
这是主函数
package?com.zmb.updemo;
import?java.io.BufferedReader;
import?java.io.DataOutputStream;
import?java.io.File;
import?java.io.FileInputStream;
import?java.io.InputStream;
import?jav...
分类:
移动开发 时间:
2014-07-21 10:36:32
阅读次数:
353
http://w3note.com/web/49.htmlphpcms v9的系统类库有一个表单类,它封装了表单的一些组件,如编辑器、图片上传、时间选择器、模板选 择器等,更详细请参考form.class.php。有了这些组件,在对phpcms v9进行二次开发时,更加省时省心。我们要做的就是如何把...
分类:
Web程序 时间:
2014-07-18 23:22:04
阅读次数:
356
public static function upFile($r,$p='../images/link/',$type='gif,jpg,png',$named=0){ $newnames = null; //var_dump($r); forea...
分类:
其他好文 时间:
2014-07-18 21:10:05
阅读次数:
177
最近一个项目中因为框架的原因,很多文本编辑器都不兼容,最后找到xheditor,这个富文本编辑器的确不错,功能基本都能满足,只是上传图片的java接口需要自己写,因此,测试了两种方法,最终成功。分享给大家。 xheditor官方给出了上传接口。因此我们只需要调用自己的Action按照它指定的js.....
分类:
编程语言 时间:
2014-07-18 19:09:42
阅读次数:
353
@{ ViewBag.Title = "Home Page";} 上传 取消上传 public string Upload(FormContext from) { var file ...
分类:
Web程序 时间:
2014-07-18 18:18:34
阅读次数:
225