摘要: public byte[] getBitmapByte(Bitmap bitmap){ ByteArrayOutputStream out = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.JPEG, 100, out); try { out.flush(); out.close(); } catch (IOException e) { e.printStackTrace(); } return out.toByteArray(); } public Bitmap getBitmapFromByte(by. 阅读全文
posted @ 2011-05-10 10:13 ctou45 阅读(352) 评论(0) 推荐(0) 编辑
摘要: tomcat启动时报如下错误: Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sinoservices.wms.order.service.WmFactSkuManager com.sinoservices.wms.order.service.impl.WmFactSkuDetailInManagerImpl.wmFactSkuManager; nested exception is org.springframework.bea 阅读全文
posted @ 2011-05-10 10:10 ctou45 阅读(608) 评论(0) 推荐(0) 编辑
摘要: jQuery中 的 unique() 函数实现了对 DOM ELement按出现位置进行排序并去除重复元素的功能。使用方法如下:<html><head></head><body onload="test()"><div id="div_1"> <div id="div_2" /></div><div id="div_3" /><script type='text/javascript' src=&# 阅读全文
posted @ 2011-05-10 10:06 ctou45 阅读(339) 评论(0) 推荐(0) 编辑