CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Recover the file size

Print topic Send  topic

Author Message
Rougeau
Posted: 11/13/2003, 12:40 PM

Hi!

I want to know if it's possible to recover the file size and the width/height from a .jpeg file? (Take if from the properties window of that file, for example...)

I have a lot of pictures to display and i want to display the file size and width/height of each and i want to know if it's possible or i will need to add some fields in my database for that?

Im working in Asp with CCS 2.0 and an access db.

thanks!
ryan
Posted: 11/19/2003, 3:34 AM

I have an idea but it's too messy besides it's just an idea. Whenever you render html pages in Frontpage, Macromedia Dreamweaver...Insert - Picture and you view HTML source, you can automatically see the width, height.

You can use VBScript string manipulation Left, Mid to get that width height however like I said it's impractical.

Now on the next explanation assuming you picked an image and the width height for example is

<img src="images/test.gif" width="24" height="24">

It's practically the same as

<img src="images/test.gif">

Now the easy way is to get rid of this width, height issue. For file size you can because there are byte counts, binary data on most file upload components (softartisans, persits)

I hope that helps just a little :(

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.