c# - 将base64传递给json请求C#
问题描述
我在将 base64 传递到我的 json 调用时遇到问题
我在我的代码中将 baseImage 定义为一个字符串,但是,每当我在 SOAP UI 上运行我的服务时,它甚至都不会运行,因为我的调用中有 base64 参数。
这是我的课
public class InsertPostwithImageRequest
{
//public string UserName { get; set; }
//public string Password { get; set; }
public string Title { get; set; }
public string Content { get; set; }
public string EncodedImage {get; set;}
// public string PostedAs { get; set; }
}
任何帮助表示赞赏。
更新:我尝试传递一个 3 个字母的字符串,它工作正常,但是,当我传递 stringfied base64 时,它没有响应
解决方案
推荐阅读
- python - 如何使用 kmeans 对数组进行聚类
- python - Django 博客 并非所有数据都被导入
- python - tkinter根据窗口大小响应滚动条
- java - 正则表达式拆分字符串并按前缀分组
- database - 在写入数据库之前比较数据的工具
- python - Discord.py tasks.loop 不起作用,它不返回任何错误
- javascript - jQuery 自动完成作为链接
- c - 为什么 mongoc_cursor_next 在我的程序中导致段错误?
- python - Python 数据框到字典列表
- permissions - 在远程主机中执行作业时 Rundeck 权限被拒绝问题