从FCK编辑器上传的检索图像并插入到数据库 [英] Retrieve uploaded image from FCK Editor and insert into database

查看:120
本文介绍了从FCK编辑器上传的检索图像并插入到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

图片使用FCKEditor的控制上传
已经被插入到数据库中。任何人都请帮助
如何获取图像使用FCK编辑器上传
控制(图像按钮)。用户也应该能够
直接从他们的本地计算机上传图片没有
上传到服务器。图像choosen应
插入到数据库直接。我已经writtern功能
插入图像到数据库中,但不知道如何
从FCKEditor的控制得到已选定的形象!

The image uploaded using FCKEditor control has to be inserted into database. Anyone please help in how to get the image uploaded using FCK Editor control('image' button). The user should also be able to directly upload image from their local computer without uploading it to the server. The image choosen should be inserted into database directly. I have writtern function to insert image into database but do not know how to get the choosen image from FCKEditor control!

推荐答案

可以做到这一点与这一招

You can do that with this trick


  • 第1步:首先保存图像文件夹

  • 第2步:然后找到FCKeditor的内容使用XPath,您可以使用htmlAgility对于所有的图像标记

  • 第3步:从中找到图片路径,并选择从文件夹中的图像转换成字节,并保存到数据库,并从文件夹中删除图片

  • 第4步:从您Httphandlors路径替换图片src的值(显示图片)

这篇关于从FCK编辑器上传的检索图像并插入到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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