摘要:
二进制,Delphi,SQL server,截断,溢出 阅读全文
摘要:
目前使用案例是git开源项目horse改动 思路大概为http请求被WebBrokerDispatch函数转发到了WebModule中进行后续处理。 替换如下单元源码即可将horse项目的indy底层改成mormot底层,修改原理来源http://bbs.2ccc.com/topic.asp?top 阅读全文
摘要:
一:数组创建 var FJson := TQJson.Create; try with FJson.AddArray('Arr') do begin for i := 0 to 1 do begin with add do begin Add('User').AsInteger := i; Add( 阅读全文
摘要:
一: 日志发送到远程syslog服务器: var AWriter := TQLogSocketWriter.Create; AWriter.ServerHost := 127.0.0.1;//远程服务器地址 AWriter.ServerPort := 514; //远程服务器端口 AWriter.U 阅读全文
摘要:
TidHttp控件默认只能接收状态码200的成功响应,其余状态码,比如404,400..等会直接抛出异常,下面两个方法可以获取非200响应值的返回值数据 一: 直接勾选Tidhttp控件这两个属性,此时获取到的返回值即为正常返回数据 二: 将Post或者Get使用try except end包裹,获 阅读全文
摘要:
delphi 国密 SM4 java互通 阅读全文
摘要:
//服务器代码 (AContext: THttpServerRequest) if Pos('multipart/form-data', AContext.InContentType) > 0 then begin upload(AContext.InContentType, AContext.In 阅读全文
摘要:
记录别人遇到的报错信息,以及后续的解决方案,感觉以后可能会遇到,记录一下免得以后遇到了处理不了。 问题现象为:返回值中的数据,部分为UTF8编码,部分不是的情况,使用TEncoding.UTF8格式接收返回值,会报错"No mapping for the Unicode..." 解决方案为:使用TU 阅读全文
摘要:
DELPHI,Firedac,连接池 阅读全文