asp .net / sql / image数据类型问题 [英] asp .net / sql / image data type question
问题描述
大家好,
我发布这个大约一周后没有回复,所以我想再次尝试
。关于使用sql image
数据类型,我有一个奇怪的问题。我知道如何拍摄图像类型并将其转换为屏幕上的
图片。我所拥有的是这样一种情况,我需要从一个数据库中读取图像数据,存储它,然后将其上传到另一个数据库的
。我尝试将它存储在viewstate和一个字节
变量中。我不知道我是在丢失lenth属性还是什么,但是
我无法将数据从一个数据库传输到另一个数据库。所以一旦我从一个sql数据库中读出了图像数据类型,我可以保存什么样的asp .net变量
,这样我就可以将它写入另一个数据库了?谢谢大家!
Hi all,
I posted this about a week back with no response so I want to try
again. I have a weird questions in regards to working with sql image
data types. I know how to take the image type and convert it into a
picture on the screen. What I have is a situation where I need to read
the image data from one database, store it, and then upload it to
another database. I tried storing it in viewstate and in a byte
variable. I don''t know if I am loosing the lenth property or what, but
I cannot get the data from one database to another. So once I read
IMAGE data type out of an sql database, what kind of asp .net variable
can I save it to so I can write it into another database? Thanks all!
推荐答案
我认为要走的路是:将数据从DB读取到字节[]
(字节数组)使用StreamReader和向后。
干杯
" ma ****** @ bellsouth.net"写道:
I think the way to go is: reading the Image data from the DB to the byte[]
(byte array) using StreamReader and backwards.
Cheers
"ma******@bellsouth.net" wrote:
大家好,
我发布这个大约一周后没有回应所以我想再次尝试
。关于使用sql image
数据类型,我有一个奇怪的问题。我知道如何拍摄图像类型并将其转换为屏幕上的图片。我所拥有的是一种情况,我需要从一个数据库中读取图像数据,存储它,然后将其上传到另一个数据库。我尝试将它存储在viewstate和一个字节
变量中。我不知道我是在丢失lenth属性还是什么,但是
我无法将数据从一个数据库传输到另一个数据库。所以一旦我从一个sql数据库中读取了IMAGE数据类型,我可以保存什么样的asp .net变量,以便将其写入另一个数据库?谢谢大家!
Hi all,
I posted this about a week back with no response so I want to try
again. I have a weird questions in regards to working with sql image
data types. I know how to take the image type and convert it into a
picture on the screen. What I have is a situation where I need to read
the image data from one database, store it, and then upload it to
another database. I tried storing it in viewstate and in a byte
variable. I don''t know if I am loosing the lenth property or what, but
I cannot get the data from one database to another. So once I read
IMAGE data type out of an sql database, what kind of asp .net variable
can I save it to so I can write it into another database? Thanks all!
马特尝试查看下面的示例
http://authors.aspalliance.com/das/readimage.aspx
那应该有帮助< br $>
Patrick
< ma ****** @ bellsouth.net>在消息中写道
news:11 ********************** @ f14g2000cwb.googlegr oups.com ...
Matt try looking through this sample below
http://authors.aspalliance.com/das/readimage.aspx
That should help
Patrick
<ma******@bellsouth.net> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
大家好,
我发布这个大约一周后没有回应所以我想再次尝试
。关于使用sql image
数据类型,我有一个奇怪的问题。我知道如何拍摄图像类型并将其转换为屏幕上的图片。我所拥有的是一种情况,我需要从一个数据库中读取图像数据,存储它,然后将其上传到另一个数据库。我尝试将它存储在viewstate和一个字节
变量中。我不知道我是在丢失lenth属性还是什么,但是
我无法将数据从一个数据库传输到另一个数据库。所以一旦我从一个sql数据库中读取了IMAGE数据类型,我可以保存什么样的asp .net变量,以便将其写入另一个数据库?谢谢大家!
Hi all,
I posted this about a week back with no response so I want to try
again. I have a weird questions in regards to working with sql image
data types. I know how to take the image type and convert it into a
picture on the screen. What I have is a situation where I need to read
the image data from one database, store it, and then upload it to
another database. I tried storing it in viewstate and in a byte
variable. I don''t know if I am loosing the lenth property or what, but
I cannot get the data from one database to another. So once I read
IMAGE data type out of an sql database, what kind of asp .net variable
can I save it to so I can write it into another database? Thanks all!
我很感谢建议伙伴。
Pat,
您正在向我展示如何从SQL图像类型显示图片。我已经成功实现了这个
。我需要知道如何将这些信息转移到另一个
数据库的另一个表中的另一列。应该很容易,但我不知道该怎么做。
Alex444,
我不明白你怎么做你的建议。我会做一些
搜索。如果你能给我一个更多的例子,我会非常感激。
很感激。
再次感谢所有人。你们很棒。
Pat写道:
I appreciate the advise guys.
Pat,
You are showing me how to display a picture from SQL image type. I have
successfully implemented this already. I need to know how to transfer
this information into another column in another table in another
database. Should be easy, but I am not sure how to.
Alex444,
I do not understand how to do what you have suggested. I will do some
searches. If you could give me more of an example, I would GREATLY
appreciate it.
Thanks again all. You guys are great.
Pat wrote:
马特试着看下面这个样本
http://authors.aspalliance.com/das/readimage.aspx
这应该有帮助.Patrick
< ma ****** @ bellsouth.net>在消息中写道
新闻:11 ********************** @ f14g2000cwb.googlegr oups.com ...
Matt try looking through this sample below
http://authors.aspalliance.com/das/readimage.aspx
That should help
Patrick
<ma******@bellsouth.net> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
大家好,
我发布这个大约一周后没有回应所以我想再次尝试
。关于使用sql image
数据类型,我有一个奇怪的问题。我知道如何拍摄图像类型并将其转换为屏幕上的图片。我所拥有的是一种情况,我需要从一个数据库中读取图像数据,存储它,然后将其上传到另一个数据库。我尝试将它存储在viewstate和一个字节
变量中。我不知道我是在丢失lenth属性还是什么,但是
我无法将数据从一个数据库传输到另一个数据库。所以一旦我从一个sql数据库中读取了IMAGE数据类型,我可以保存什么样的asp .net变量,以便将其写入另一个数据库?谢谢大家!
Hi all,
I posted this about a week back with no response so I want to try
again. I have a weird questions in regards to working with sql image
data types. I know how to take the image type and convert it into a
picture on the screen. What I have is a situation where I need to read
the image data from one database, store it, and then upload it to
another database. I tried storing it in viewstate and in a byte
variable. I don''t know if I am loosing the lenth property or what, but
I cannot get the data from one database to another. So once I read
IMAGE data type out of an sql database, what kind of asp .net variable
can I save it to so I can write it into another database? Thanks all!
这篇关于asp .net / sql / image数据类型问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!