如何使用Web服务上传图像以及图像将存储在哪里? [英] how to upload image using web services and where images will be store?

查看:89
本文介绍了如何使用Web服务上传图像以及图像将存储在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用网络服务上传图片以及存储图片的位置?

任何人都有网络服务经验?

how to upload image using web services and where images will be store?
any one have experience in web services?

推荐答案

首先,我想回答你的第二个问题,那就是图像存储的地方。好吧,您指定图像(或任何类型的文件)将存储在服务器中的位置(特别是框架中的集线器)。您甚至可以通过将文件发送到该链接等来定义一些第三方来存储您的数据。



现在,来到主要问题, Web服务只是一个框架,允许您创建服务器 - 客户端系统,其中多个客户端可以连接到您的应用程序(充当服务器并在特定IP地址托管您的应用程序),因此您可以(使用客户端应用程序)在服务器上执行不同的功能和方法。这取决于您如何开发应用程序,您可以构建一个UniversityHub来创建一个中心,供学生使用客户端系统(网站,软件等)管理他们的详细信息,您可以定义Web服务的结构。现在让我们来谈谈上传文件的要点。那么,为此您需要一个表单(如果您要开发一个网站),然后允许用户选择一个文件,然后将表单提交给服务器。在服务器端,一旦调用就会执行相同的功能,并且文件也附加到请求,因此服务器保存它。



它只是您定义实际应用程序的业务逻辑的方法。客户端将能够以您允许的方式与系统交互。有关Web服务的更多信息,请阅读此维基百科文章 [ ^ ]。其次,如果你要创建一个新的Web服务,还没有进入任何框架,我想建议你开始使用.NET的WCF框架。如果您有兴趣,那么您可以阅读我的文章 [ ^ ],并学习如何创建一个简单的Web服务,以及服务器(集线器)和客户端(在我的情况下是网站)。
First of all, I would like to answer the second question of yours, that is "where images will be store". Well, you specify where the images (or any kind of files) would be stored in the server (specially the hub in your framework). You can even define some third-party to store your data on, by sending the file over to that link and so on.

Now, coming to the main question, the web service is just a framework provided to you to allow you to create a server-client system, in which multiple clients can connect to your application (which acts as a server and hosts your application at a specific IP address) and thus you can (using your client applications) execute different functions and methods on your server. It depends on how you develop the application, you can build a UniversityHub to create a hub for students to manage their details using the client systems (websites, softwares etc), you can define the structure of the web service. Now let us come to the main point, of uploading the files. Well, for that you would require a form (if you're going to develop a website) and then allow the users to select a file and then submit the form to the server. On the server-side, same function would be executed once the call is made, and the file is also attached to the request, thus the server saves it.

It is just the method that you define your actual application's business-logic in. The clients would be able to interact with the system in a way you allow them to. For more on Web Service, please read this Wikipedia article[^]. Secondly, if you're going to create a new web service, and have not gotten into any framework yet, I would like to recommnd that you start using the WCF framework of .NET. If you are interested, then you can read my article[^] on that, and learn how to create a simple web service, and the server (hub) and the clients (website in my case).


这篇关于如何使用Web服务上传图像以及图像将存储在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆