将上传的图像保存到db [英] save uploaded image to db

查看:71
本文介绍了将上传的图像保存到db的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨所有

i有一个带有字段图像的表格,我有一个带有fileupload控件的表单。请帮助我选择我的列的数据类型和asp,c#代码用于在表格中保存图像显示它。请不要提示任何链接。这个问题让我感到困惑

hi all
i have a table with field image and i have a form with fileupload control.please help about to choose data type for my column and asp,c# code for saving image in table after that showing it.please do not suggest any link.this problem were confuzed me

推荐答案

我不在乎你是否说请不要建议任何链接 ,我要去,因为这是一个复杂的问题,我不会再输入这个了!



阅读:为什么我得到参数无效。我从数据库中读取图像时出现异常? [ ^ ] - 后半部分解释了如何在数据库中存储图像数据。 (上半部分解释了为什么下半场完全存在。)
I don''t care if you do say "please do not suggest any link", I''m going to, because this is a complex problem and I''m not typing this out again!

Read this: Why do I get a "Parameter is not valid." exception when I read an image from my database?[^] - the second half explains how to store image data in your database. (The first half explains why the second half is there at all.)


这篇关于将上传的图像保存到db的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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