当我尝试从SQlite获取数据并且字段大小超过2 MB时,它会抛出异常
$(document).on('click', '#button-delete', function(e) {
e.stopImmediatePropagation();
//$(this).off(e);
if (confirm('Are You Sure!')) {
$.ajax({
url: "<?php echo base_url('admin/common/filemanager/delete');?>",
type: 'post',
dataType: 'json',
data: {
cache: $(this).attr('data-cache'),
image: $(this).attr('data-path')
},
success: function(json) {
if (json['error']) {
alert(json['error']);
}
if (json['success']) {
$('#button-refresh').trigger('click');
}
},
});
}
});
&#34;
如何将超过2 Mb的字段存入字符串?
我在sqlite中存储了多个Base64字符串作为LONG TEXT它成功存储但是当我从数据库中捕获因为该字段包含超过2400000个字符而进入异常时。
这是代码
"Couldn't read row 0, col 0 from Cursor Window. Make sure the Cursor is initialized correctly before accessing data from it.