如何在SQL数据库中获取存储为图像的文件的大小 [英] How to get size of an file stored as image in SQL Database

查看:101
本文介绍了如何在SQL数据库中获取存储为图像的文件的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获得存储在SQL数据库中的文件大小(作为图像数据

类型)。


有谁知道怎么做?


任何帮助都会受到赞赏

解决方案



从中获取数据将数据库分成二进制数组并计算长度。

" Dino Buljubasic" <二** @ noplacelikehome.com>在消息中写道

news:74 ******************************** @ 4ax.com ...

我想获取存储在SQL数据库中的文件大小(作为图像数据类型)。

有谁知道怎么做?

任何帮助都会受到重视





不,我不能这样做。我需要图像的大小,所以我可以设置我的

进度条,这样就可以显示已经下载了多少图像

到目前为止。如果我将它存储在一个数组中,那么有什么方法可以获得

进度条,图像已经从数据库中获取。


周三,9 2005年3月22:12:53 + 0300,gaidar < ga **** @ vbstreets.ru>

写道:


从数据库中获取数据到二进制数组并计算' '长度。

" Dino Buljubasic" <二** @ noplacelikehome.com>在消息中写道
新闻:74 ******************************** @ 4ax.com .. < blockquote class =post_quotes>我想获取存储在SQL数据库中的文件大小(作为图像数据类型)。

有谁知道怎么做?

任何帮助都会受到重视




只是为了纠正自己:

我需要这些信息,所以我可以设置我的进度条显示下载

进度。


谢谢

2005年3月9日星期三18:47:53 GMT,Dino Buljubasic

< di ** @ noplacelikehome.com>写道:

我想获取存储在SQL数据库中的文件大小(作为图像数据类型)。

任何人都知道如何这样做吗?

任何帮助都会受到重视




I want to get the size of a file stored in SQL Database (as image data
type).

Anybody knows how to do this?

Any help will be greatelly appreciated

解决方案


Get data from the database into binary array and calc in''t length.
"Dino Buljubasic" <di**@noplacelikehome.com> wrote in message
news:74********************************@4ax.com...

I want to get the size of a file stored in SQL Database (as image data
type).

Anybody knows how to do this?

Any help will be greatelly appreciated




No I can not do that. I need the size of image so I can set my
progress bar so it displays how much of that image has been downloaded
so far. If I store it ino an array, then what is point of having
progress bar, the image is already fetched from the database.

On Wed, 9 Mar 2005 22:12:53 +0300, "gaidar" <ga****@vbstreets.ru>
wrote:


Get data from the database into binary array and calc in''t length.
"Dino Buljubasic" <di**@noplacelikehome.com> wrote in message
news:74********************************@4ax.com.. .

I want to get the size of a file stored in SQL Database (as image data
type).

Anybody knows how to do this?

Any help will be greatelly appreciated




just to correct my self:

I need this information so I can set my progress bar to show download
progress.

Thank you

On Wed, 09 Mar 2005 18:47:53 GMT, Dino Buljubasic
<di**@noplacelikehome.com> wrote:

I want to get the size of a file stored in SQL Database (as image data
type).

Anybody knows how to do this?

Any help will be greatelly appreciated




这篇关于如何在SQL数据库中获取存储为图像的文件的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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