如何保存带图片的文章? [英] How Do I Go About Saving An Article With Pictures?

查看:101
本文介绍了如何保存带图片的文章?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天程序员,

我在决定如何编写涉及创建文章的Web应用程序时遇到问题。

这就是我需要但我不喜欢我不知道如何参与其中。

1.我需要客户端看到一个html就绪框,就像谷歌博客一样。



2.如果我的文章涉及像博客一样的图片和文字,我如何将其保存在数据库中?如何存储内容,以便在您查看文章时,您将看到它使用html编辑器编写它的方式。

请帮助。

Good day programmers,
i'm having trouble in deciding how i code my web application that involves creating an article.
This is what i need but i don't know how to involve it.
1. I need the client to see an html ready box just as in the case of google blog.

2. If my article involve pictures and text like io case of a blog, how do i save that in the database? How can the content be stored so that when you view the article, you will see it the way you wrote it with the html editor.
Please help.

推荐答案

回答一次又一次被问过很多次的问题并不好: http://www.codeproject.com/search的.aspx q =%28%22.NET%22 + OR +%22C%23%22%29 +数据库+%28image + OR +图像+ OR +位图+ OR +位图%29&安培; doctypeid = 1%3B5 [ ^ ]。



但是,有一种更推荐的方法:为所有图片文件提供唯一名称并将它们存储在服务器主机的文件系统中,并使用数据库仅存储关联ive这些文件的名称。



-SA
It's not good to answer a question which was asked so many times, again and again: http://www.codeproject.com/search.aspx?q=%28%22.NET%22+OR+%22C%23%22%29+database+%28image+OR+images+OR+bitmap+OR+bitmaps%29&doctypeid=1%3b5[^].

However, there is a more recommended approach: you give all the picture files unique names and store them in the file system of the server's host, and use the database to store only the relative names of those files.

—SA


这篇关于如何保存带图片的文章?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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