android在使用SQLiteDatabase插入数据时,抛出如下异常:
W/CursorWindow(25503): Window is full: requested allocation 5583269 bytes, free space 2096639 bytes, window size 2097152 bytes
解决方法:数据库表字段值如果超过2M,那么就把值存在文件中,然后把文件路径存在此字段中。...
如何在浏览器网页中显示word文件内容把word文件读到byte[]中,再Response.OutputStream.Write(bytes)到客户端去Page_Load事件中写: //FileStream fs = new FileStream("c:\\1.doc", FileMode...
分类:
Web程序 时间:
2015-02-13 18:23:38
阅读次数:
184
使用了MX25L512的SPI接口的Flash电路连接图:总的大小512kb,即64kB,sector的大小为256 Bytes,block的大小为4k Bytes调试时出现的问题:1、Flash只能读数据,不能写数据 根源在于Flash的软件写保护没有去掉,这样,写、擦除,甚至写状态寄存器都不能执...
分类:
其他好文 时间:
2015-02-12 20:05:27
阅读次数:
833
log_format main 'realip:$http_x_forwarded_for slbip:$remote_addr-$remote_user [$time_local] "$request" ' '$status $body_bytes_s...
分类:
其他好文 时间:
2015-02-12 18:03:08
阅读次数:
247
字符串库中的一些函数是非常简单的:string.len(s) 返回字符串s的长度;string.rep(s, n)返回重复n次字符串s的串;你使用string.rep("a", 2^20)可以创建一个1M bytes的字符串(比如,为了测试需要);string.lower(s) 将s中的大写字母转换...
分类:
其他好文 时间:
2015-02-11 18:26:06
阅读次数:
196
step1. 确认到底是哪个段占用了sysaux空间:select segment_name,sum(bytes)/1024/1024 from dba_segments where tablespace_name='SYSAUX' group by segment_name order by 2 ...
分类:
其他好文 时间:
2015-02-10 18:31:21
阅读次数:
141
Warning: POST Content-Length of 35052172 bytes exceeds the limit of 8388608 bytes in Unknown on line 0该条警告是PHP.ini中的配置有关。上述错误信息的大致意思是,我们使用POST请求提交的数据大...
分类:
Web程序 时间:
2015-02-09 15:39:08
阅读次数:
159
Python3 读写文件碰到的编码问题 1,远程文件资源读取 response的为 bytes,即utf-8或者gbk,需解码decode为unicode如:[python] view plaincopy# coding=gbk import urllib.request import re url...
分类:
编程语言 时间:
2015-02-06 18:12:11
阅读次数:
154
Problem Description
How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be per...
分类:
其他好文 时间:
2015-02-06 09:36:23
阅读次数:
130
【Unity加载二进制数据】 The first step is to save your binary data file with the ".bytes" extension.unitywill treat this file as aTextAsset. As a TextAsset th....
分类:
编程语言 时间:
2015-02-05 21:47:55
阅读次数:
208