`
牧羊人
  • 浏览: 211126 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
用java处理图片的时候,ImageIO读jpg的时候出现exception:bandOffsets.length is wrong。我也遇到过,最终也解决啦,把成果跟大家分享。 原因可能是JPEG图片的ICC信息可能已经被破坏了,所以ImageIO会抛出异常 解决办法: BufferedImage bis = null; try{ bis = ImageIO.read(file); bis.getWidth(); bis.getHeight(); }catch(Exception e){ ...
/** Ext.namespace("Ext.ux.data"); Ext.ux.data.DWRProxy = function(config) { Ext.apply(this, config); if (!this.dwrFn) alert("you must give the dwrFn to run!"); this.dwrlen = this.dwrFn.toString()/* 取得函数参数 长度 */ .match(/^[\s\(]*function[^(]*\((.*? ...
Global site tag (gtag.js) - Google Analytics