数据库图片检索 [英] database picture retrieval

查看:70
本文介绍了数据库图片检索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我检查我的数据库输出我的dbo.products的数据时,在productimg列下,我得到了一些非常长的数字和字母组合。以这种方式存储它是对的吗?为我的productimg我使用图像作为数据类型。我是否正在将pciture存储到我的数据库中?



i复制了一部分数字和字母,它很长:

0xFFD8FFE000104A46494600010100000100010000FFDB0084000906071412121414101415151414141415161414151

when i checked my database to output the data for my dbo.products, under the column productimg, i got some numbers and letter combinations which is very long. Is it right that it is stored that way? for my productimg im using image as the datatype. Am i on the right track for storing the pciture to my database?

i have copied a portion of the numbers and letters, it is very long:
0xFFD8FFE000104A46494600010100000100010000FFDB0084000906071412121414101415151414141415161414151

推荐答案

是的,您将图像的字节值存储在该列中。如有其他问题,请查看此内容。

使用ASP.NET在数据库或文件系统中存储上载的文件 [ ^ ](这有比较文件系统与数据库 - 优点/缺点等,)



编辑

------------- ------

如何使用Asp.net在数据库中保存和检索图像? [ ^ ]
Yes, you're storing byte value of image in that column. For your other questions, check this.
Storing Uploaded Files in a Database or in the File System with ASP.NET[^](This has comparison File System vs Database - Advantages/Disadvantages, etc.,)

EDIT
-------------------
How to save and retrieve Image in Database using Asp.net?[^]


这篇关于数据库图片检索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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