473,463 Members | 1,383 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

UPLOAD IMAGE from Asp.net

Hi !

Any body knows how to obtain the height and width from an image that I am
trying to upload ?

I am using the clasic <input type=file......> object from html.

Thank you very much.
Feb 16 '06 #1
3 1159
Server side using System.Drawing ? Depends why you need this info...

--
Patrice

"german" <ge*****@moxiongroup.com> a écrit dans le message de
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi !

Any body knows how to obtain the height and width from an image that I am
trying to upload ?

I am using the clasic <input type=file......> object from html.

Thank you very much.

Feb 16 '06 #2
Ok, do you have a code to perform this action ?

thks

"Patrice" <a@bc.c> wrote in message
news:u0**************@TK2MSFTNGP11.phx.gbl...
Server side using System.Drawing ? Depends why you need this info...

--
Patrice

"german" <ge*****@moxiongroup.com> a écrit dans le message de
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi !

Any body knows how to obtain the height and width from an image that I am
trying to upload ?

I am using the clasic <input type=file......> object from html.

Thank you very much.


Feb 16 '06 #3
Try :
http://msdn.microsoft.com/library/de...classtopic.asp

Use the FromFile method to load the bitmap and use its Height/Width to get
the size (you can also have the resolution and the bit depth).

--
Patrice

"german" <ge*****@moxiongroup.com> a écrit dans le message de
news:%2***************@TK2MSFTNGP11.phx.gbl...
Ok, do you have a code to perform this action ?

thks

"Patrice" <a@bc.c> wrote in message
news:u0**************@TK2MSFTNGP11.phx.gbl...
Server side using System.Drawing ? Depends why you need this info...

--
Patrice

"german" <ge*****@moxiongroup.com> a écrit dans le message de
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi !

Any body knows how to obtain the height and width from an image that I am trying to upload ?

I am using the clasic <input type=file......> object from html.

Thank you very much.



Feb 16 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
0
by: SEMIH DEMIR | last post by:
Sitelerden birinde verilen yabancı kaynakli bir scriptti duzenledim yanlız birseyin içinden bir turlu cıkamadım işin aslı ilk defa persistin upload componentini kullanacam yanlız suanki haliyle...
4
by: Jim Michaels | last post by:
after a file upload, $_FILES is not populated but $_POST is. what's going on here? $_POST=C $_POST=C $_POST=C $_POST=C:\\www\\jimm\\images\\bg1.jpg $_FILES= $_FILES= $_FILES=
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
3
by: kksandeep | last post by:
i am using this three files to uplod file. i got this file from net but i think these have some error. i am new to this field plz help the script i found is some helpful but not too that i need ...
1
by: kksandeep | last post by:
i am using this three files to uplod file. i got this file from net but i think these have some error. i am new to this field plz help the script i found is some helpful but not too that i need ...
7
by: xx75vulcan | last post by:
Hi, I've got a PHP Upload Form that works great, unless that is, the image your uploading has been modified through a photo editing software. Example: if I upload the image straight from a...
7
by: mishrarajesh44 | last post by:
hii all Truly telling i hav got this code from net & i am finding error while running the code below.. code:- <?php $idir = "photo/"; // Path To Images Directory $tdir =...
1
by: chennaibala | last post by:
can any one send me mutiple image upload program and save the file name with extension in mysql table.we must cheak uploaded file type like bmp or any image file while uploading. i develop...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.