我目前正在使用iOS 10和Swift 3以及Alamofire 4开发应用程序
此应用程序的目的是上载之前生成的PDF文件.
PDF生成工作正常,文件已创建.
但是上传不起作用...我收到了成功的回复,但文件没有上传.
我的服务器响应
Multi part Content-Type => multipart/form-data; boundary=alamofire.boundary.56958be35bdb49cb
Multi part Content-Length => 293107
Multi part Content-Boundary => alamofire.boundary.56958be35bdb49cb
responses
SUCCESS: {
uploadedFiles = (
{
details = " Key=Content-Disposition - values=[form-data; name=\"pdfDocuments\"] length=8";
storedFileName = "/var/www/pdf/17/009/22/TMP104150531290406.tmp";
type = PDF;
uploadedDate = 1483999296701;
uploadedFileName = UnknownFile;
}
);
}
end responses
Run Code Online (Sandbox Code Playgroud)
我正在使用多部分将我的文件上传为数据,如您在此处所见
文件网址很好.
我搜索了SO,但没有找到任何解决方案......
在这里你可以看到我的控制器
Alamofire.upload(
multipartFormData: {
multipartFormData in
if let urlString = urlBase2 {
let pdfData = try! Data(contentsOf: urlString.asURL()) …Run Code Online (Sandbox Code Playgroud) 我目前正在使用sip开发一个实际工作的应用程序.
但是,我想允许人们通过"电话簿/联系方式"拨打电话,
我看到了一些应用程序,比如csip simple,它的工作原理.我可以点击电话号码,然后会出现一个小对话框,我可以在几个应用程序之间进行选择.
我已经对StackOverflow做了一些研究,我找到了一个不起作用的解决方案.
我想知道我的清单是否犯了错误,你能帮帮我吗?
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="com.example.SIPProject" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:supportsRtl="true">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.Black.NoTitleBar" android:windowSoftInputMode="adjustResize">
<intent-filter android:label="@string/launcher_name">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter android:priority="10">
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.DIAL" />
<action android:name="android.intent.action.CALL" />
<action android:name="android.intent.action.DIALER" />
<category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.CALL_PRIVILEGED" />
<data android:scheme="tel" />
</intent-filter>
</activity>
<service android:name="com.example.sip.SipManagerService" />
<receiver android:name="com.example.sip.SipOnboot">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" …Run Code Online (Sandbox Code Playgroud) 我想使用Linphone库开发一个应用程序.
我已经搜索了一些教程和示例,但是在Github的示例中,它没有解释如何注册到sip服务器或者我不理解这些示例?
我发现了这个:http://www.linphone.org/docs/liblinphone-javadoc/
但它对我不起作用,或者我错过了什么?
在哪里可以找到注册到SIP服务器/呼叫管理器的一些示例?
提前致谢
我目前正在使用NodeJS开发应用程序。
但是,服务器通常会抛出此错误,并且我无法与mysql交互。
[Error: read ETIMEDOUT]
code: 'ETIMEDOUT',
errno: 'ETIMEDOUT',
syscall: 'read',
fatal: true }
{ [Error: Cannot enqueue Query after fatal error.] code: 'PROTOCOL_ENQUEUE_AFTER_FATAL_ERROR', fatal: false }
Run Code Online (Sandbox Code Playgroud)
有人有解决此问题的解决方案吗?
谢谢