随笔分类 - java
摘要:实现文件上传我想大家也都会这是jsp页面的代码index.jspInsert title here商品添加名称:类别:价格:数量:照片:描述: 这是iframe框架所引用的界面Iframe.jspInsert title here" width="100px" height="100px"/>...
阅读全文
摘要:c#中byte[] data=Encoding.Default.GetBytes(“你哈”);string text=Encoding.Default.Getstring(data);java中byte[] data=text.getBytes("iso-8859-1")string text =new string(data,'iso-8859-1'");
阅读全文
摘要:private static ArrayList> parseJSONpinglun(InputStream inStream) throws Exception{byte[] data=ImageService.read(inStream);String string=new String(data);JSONArray jsonArray =new JSONArray(string);ArrayList> msgs=new ArrayList>();for(int i=0;i msg=new HashMap();JSONObject jsonobject= jsonArr
阅读全文
摘要:public static byte[] read(InputStream inStream) throws Exception{ByteArrayOutputStream outputStream=new ByteArrayOutputStream();//创建缓存将读到的信息放到缓存中byte[] buffer=new byte[1024];int length=0;while((length=inStream.read(buffer))!=-1){outputStream.write(buffer, 0, buffer.length);}inStream.close();return o
阅读全文
摘要://1、call+包名+存储过程名(传入、传出值用?) String str="{call SMSBUSINESS.deleteZhZMember(?,?,?)}"; //2、建立连接 Connection conn=null; conn=DriverManager.getConnection(); //3、使用java.sql.*类 CallableStatement cs=conn.prepareCall(str); //4、传入in值 cs.setInt(1,id); cs.setInt(2,-2); //5、设置out值 cs.registerOutParamete
阅读全文

浙公网安备 33010602011771号