您建议采用什么方法将图片从Flash项目保存到数据库中? [英] what method do you suggest to save picture into database from a Flash Project?

查看:109
本文介绍了您建议采用什么方法将图片从Flash项目保存到数据库中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


因为语言对不起.
我想将图片从Flash项目中保存到SQL中的C#SQL中,就像在C#中一样,用户使用打开文件对话框并选择图片,然后将其保存到数据库中,现在在Flash中,我不知道该怎么做那?我很困惑.


excuse me because of the language.
i want to save picture from a flash project to my table in SQL with C# like in c# that user use the open file dialog and select the picture and then save it to the database, now in flash i don''t know how to do that? I''m confused.

推荐答案

我认为您正在将事情混为一谈.您想使用c#将图片存储在数据库中.因此,为此,我假设您使用asp.net,并且使用的语言是c#.在这种情况下,您正在编写的asp.net是服务器端应用程序,并处理客户端请求,在这种情况下,它将图像存储到数据库中.

Flash是一种客户端技术,您打算将其用于上传图像.重要的是要记住,像这样上传图像基本上与使用带有type = file的html输入控件相同.两者都将文件上传到服务器,对于服务器来说,使用哪种方法并不重要,因为传入的数据是相同的.

闪光灯:
http://livedocs. adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001054.html [ http://cgi-lib.berkeley.edu/ex/fup.html [ ^ ]

然后,您只需要创建处理上载文件的服务器应用程序即可.
http://support.microsoft.com/kb/323246 [
I think you are mixing things up a bit. You want to store a picture in a database using c#. So, for this I''m assuming that you use asp.net and c# is the language used. The asp.net you are writing is in this case the server side application and handles the client requests, which is in this case storing an image to a database.

Flash is a client side technology and you are planning to use that for uploading an image. It is important to remember that uploading the images like this is basically the same as using an html input control with type=file. Both upload a file to the server and for the server it doesn''t really matter which method is used because the incoming data is the same.

flash:
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001054.html[^]

html:
http://cgi-lib.berkeley.edu/ex/fup.html[^]

You then just need to create the server application that handles the uploaded file.
http://support.microsoft.com/kb/323246[^]

You also need some code to store it into the database but I''m sure google can help you out with that.

Good luck!


这篇关于您建议采用什么方法将图片从Flash项目保存到数据库中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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