图像保存在数据库中

编程入门 行业动态 更新时间:2024-10-27 14:31:25
本文介绍了图像保存在数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想将上传的图像保存到数据库.现在我的问题是:

I want to save an uploaded image to database. Now my question is:

  • SQL Server 2000 图像的数据类型应该是什么?一种.图片湾varbinary

  • What should be the data type for SQL Server 2000 for image? a. image b. varbinary

    在数据库中保存图片的代码是什么?

    what is the code for saving image in database?

    如何从数据库中检索图像并显示?

    How to retrieve the image from database and show?

    请向我推荐任何教程或指南.或者如果可以的话,请与我分享.

    Please refer me any tutorial or guidline. Or if you can please share with me.

    提前致谢.

    推荐答案

    数据类型应该是文本,因为将图像保存到数据库的最佳方法是保存其路径.让您的操作系统完成存储实际文件的工作.

    The data type should be text because the best way to save an image to a database is to save its path. Let your OS do the job of storing the actual files.

  • 更多推荐

    图像保存在数据库中

    本文发布于:2023-11-07 01:18:10,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1565158.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:数据库中   图像

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!