如何知道数据传输大小为sql? [英] How To Know Data transfer size to sql ?

查看:78
本文介绍了如何知道数据传输大小为sql?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个用于将图像文件保存到sql的工具..

我能知道有多大吗? (在字节中)数据转移到SQL ???

I make a little Tools for save image file to sql..
can i know how big? (in Byte) the data Transfered to SQL ???

推荐答案

1.如果从本地系统(或LAN)访问图像,则应使用下一个方法: Image.FromStream()如下例所示:

1.If you are accessing an image from your local system (or LAN) you should use the next method: Image.FromStream() like in the next example:
FileStream fs = new FileStream(imageFileName, FileMode.Open, FileAccess.Read);
Image image = Image.FromStream(fs);



2.如果你想使用图片网址从网上下载图片,你应该使用 System.Net.WebRequest object。


这篇关于如何知道数据传输大小为sql?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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