如何将图像从 flex 应用程序传递到 asp net c# web 服务?

如何将图像从 flex 应用程序传递到 asp net c# web 服务?

问题描述:

我想将图像从 flex 应用程序存储到 asp net web 服务,稍后将这些图像发送回 flex 应用程序.您能否在 C# 中提供一个示例 Web 方法或建议一个网站来阅读有关如何执行此操作的信息.我试过护目镜,但找不到任何有用的东西

I want to store images from the flex application to a asp net web service and at a later point will be sending these images back to flex application . Can you please give a example web method in c# or suggest a website to read about how to do this. I tried goggling but couldn't find anything very useful

我能想到的有两种方法:

There are two ways I can think of:

  • 使用 AMF 并将 ByteArray 发送到 C# (flex 到 c#)
  • 使用 URLRequest 及其数据属性通过 HTTP POST 发送以 Base64 编码的 ByteArray