1,本地的html文件一定要放到工程文件的根目录2,html代码中的图片路径一定要是相对路径3,下面是用UIWebView调用本地文件的方法方法一:NSString*filePath = [[NSBundlemainBundle]pathForResource:@"1"ofType:@"html"]...
分类:
移动开发 时间:
2014-11-26 13:54:52
阅读次数:
144
********//file控件,file控件id,img控件id function preImg(imgFile,sourceId, targetId) { var filepath=$("#"+sourceId).val(); var reg =...
分类:
其他好文 时间:
2014-11-24 16:57:31
阅读次数:
155
选择一张图片重命名--将图片设置为联系人图标--再次使用同一张图片重命名之后--设为另一联系人头像观察时,提示无法加载此图片
Root Cause:当用户去重命名时,gallery收不到data chang的通知,所以无法更新LocalImage的filePath,导致无法加载图片。
Solution:CropImage在加载图片前,首先会去query图片的filepath并更新。
具体...
分类:
移动开发 时间:
2014-11-24 10:06:31
阅读次数:
192
启动MediaScanner服务,扫描媒体文件,程序通过发送下面的Intent启动MediaScanner服务。扫描指定文件 public void scanFile(Context ctx, String filePath) { Intent scanIntent = n...
分类:
移动开发 时间:
2014-11-21 23:09:13
阅读次数:
210
得到文件名1 string fileName = ofd.SafeFileName;得到路径1 string filePath = System.IO.Path.GetDirectoryName(ofd.FileName);
分类:
其他好文 时间:
2014-11-20 10:17:49
阅读次数:
126
path是图片路径。/// /// 将图片转成二进制 /// /// /// public static byte[] ImageDatabytes(string FilePath) { ...
分类:
数据库 时间:
2014-11-19 18:34:32
阅读次数:
213
string fileName = "name.apk";//客户端保存的文件名 string filePath = Server.MapPath("apk/KMYY.apk");//路径 //以字符流的形式下载文件 FileStream fs = new FileStream(filePath.....
使用FileInputStream类创建的InputStream对象可以用于从文件读取内容。两个常用的构造函数如下所示: FileInputStream(String?filePath)
FileInputStream(File?fileObj) 这两个构造函数都会抛出FileNotFoundExc...
分类:
编程语言 时间:
2014-11-16 23:12:03
阅读次数:
384
通过文件二进制数据 与密钥进行异或处理,可加密文件 #ifndef __ENCRYPT__HEAD__ #define __ENCRYPT__HEAD__ #include #include namespace Crypto { /* 加密文件数据: 参数: filePath 需要加密的文件路径 k...
分类:
编程语言 时间:
2014-11-14 13:51:33
阅读次数:
205
string strCon = "Provider=Microsoft.ACE.OLEDB.12.0;data source=" + filePath + ";Extended Properties='Excel 12.0;HDR=Yes;IMEX=1'";//Excel 2007文件Provide...
分类:
数据库 时间:
2014-11-14 12:16:56
阅读次数:
226