我在Android(Retrofit)做了一个项目,我本可以在APP中得到很好的回复,但我不知道如何在Postman和Advanced REST客户端获得响应,我的问题是如何发送文件类型(我不知道该怎么称呼它),在我通过放置func applicationDidEnterBackground(_ application: UIApplication) {
if isChangedPwd {
for viewCon in (self.navigationController?.viewControllers)! {
if viewCon is HomePageViewController {
self.navigationController?.popToViewController(viewCon, animated: true)
break
}
}
}
}
实现的项目中,但我如何将这些参数放在Postman和Advanced REST客户端中?我想检查并了解它,我搜索了很多,我尝试了很多,但没有结果。请帮帮我......
这是项目代码:
new TypedFile("image/png",...
MultipartTypedOutput multipartTypedOutput = new MultipartTypedOutput();
try {
multipartTypedOutput.addPart("originalImgBlob", new TypedFile("image/png", files.get(0)));
multipartTypedOutput.addPart("img430Blog", new TypedFile("image/png;base64", files.get(1)));
multipartTypedOutput.addPart("img200Blog", new TypedFile("image/png;base64", files.get(2)));
multipartTypedOutput.addPart("img100Blog", new TypedFile("image/png;base64", files.get(3)));
multipartTypedOutput.addPart("blurResponseBlob", new TypedFile("image/png;base64", files.get(4)));
Log.d("UploadActivity", "postNewsFeed() returned: " + "" + files.get(2));
} catch (Exception e) {
e.printStackTrace();
}
doServereCall(multipartTypedOutput);