码迷,mamicode.com
首页 >  
搜索关键字:try    ( 12995个结果
XFile客户端调用JDK1.6+的webserivce时参数为null
Webservice的服务端用JDK1.6+自带的Webservice做的,客户端用的是XFile的webservice调用的,但是传过来的参数为NULL.      XFile的调用方式是:      String wsdl = "http://192.168.1.112:8088/testService?wsdl";       try {           Client clien...
分类:Web程序   时间:2015-04-17 20:32:41    阅读次数:158
android开发 socket接收图片并保存
逻辑:接收到socket之后需要将socket发送的图片数据保存下来并通知handler更新界面关键代码:public void readImage(Socket socket) { try { InputSt...
分类:移动开发   时间:2015-04-17 19:53:23    阅读次数:177
python操作Mysql实例
本文介绍了Python操作mysql,执行SQL语句,获取结果集,遍历结果集,取得某个字段,获取表字段名,将图片插入数据库,执行事务等各种代码实例和详细介绍。实例1、获取MYSQL的版本#!/usr/bin/envpython importMySQLdbasmdb try: con=mdb.connect(‘localhost‘,‘root‘,‘123‘,‘test..
分类:数据库   时间:2015-04-17 18:31:53    阅读次数:160
【leetcode】Reverse Words in a String(hard)☆
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".For C programmers: Try to solv...
分类:其他好文   时间:2015-04-17 18:05:36    阅读次数:108
C#:DataTable内容转换为String(XML)
//DataTable转String方法 public static String DataTable2String(DataTable dt) { string strXML = "\r\n"; try { ...
分类:Windows程序   时间:2015-04-17 17:16:37    阅读次数:135
【leetcode】Maximum Gap(hard)★
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ...
分类:其他好文   时间:2015-04-17 15:17:10    阅读次数:148
android开发httpGet httpPost httpURLConnection httpClient
一、HttpClinet方式1、HTTP GET 示例: 1 public class TestHttpGetMethod{ 2 public void get(){ 3 BufferedReader in = null; 4 try{ 5 HttpClient client = new DefaultHt...
分类:移动开发   时间:2015-04-17 11:43:22    阅读次数:314
c#简易电话号码输入验证
public static int haoping(string x)//类里边,函数名随便起,需要传入参数为string类型 { //判断电话号码的输入情况,首位为1且总长度为11 //返回1表示填入号码正确,返回2则表示填入号码不正确 try { if (Convert.ToInt32...
分类:Windows程序   时间:2015-04-16 19:18:38    阅读次数:118
通过WebApi取出XML数据
Get请求: public static Result GetDataFromWebs(string waybillNumbers) { var result = new Result(); try { ...
分类:Windows程序   时间:2015-04-16 19:10:35    阅读次数:134
laravel4 中 Redirect::intended和Redirect::guest的关系及用法
原文转自:http://forumsarchive.laravel.io/viewtopic.php?id=10653,有空的时候再翻译一下~This post will try to outline how to use the Redirect::intended and Redirect::g...
分类:其他好文   时间:2015-04-16 17:27:09    阅读次数:8270
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!