image size in Kb in asp.net c#
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
Hi how can I get image size in Kb in asp.net c#. I'm providing facility to download image in 800*600 or 1024*768 dimension but along with these links I want to display actual size of image in Kb in both dimensions. thanks
You get the best out of others when you give the best of yourself.
-
Hi how can I get image size in Kb in asp.net c#. I'm providing facility to download image in 800*600 or 1024*768 dimension but along with these links I want to display actual size of image in Kb in both dimensions. thanks
You get the best out of others when you give the best of yourself.
Try:
byte[] image;
int length = image.Length; //in bytes
// to convert in kb, divide by 1024