Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find height and width of Image using serversidescript

Status
Not open for further replies.

bugeditor

Technical User
Oct 9, 2001
44
IN
Hi,
I Have an asp page I wanted to find the height and width of the image on the server side script itself ..any help How to do that.

Thanks
 
Hi,
Thanks I saw the code and made it to suit my requirement
It working fine with windows but gives error on Lunux hostinf asp webserver

Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument: 'asc'
func.asp, line 39

if u have used ...please tell me what could be the reason
error in in this function

Function lngConvert2(strTemp)
lngConvert2 = clng(asc(right(strTemp, 1)) + ((asc(left(strTemp, 1)) * 256)))
End function

Thanks
 
Try to not use CLng or CStr, i have some problems with that...
Try to use just Int or Str, but in your example u dont need to convert an number(Asc() return an number) to an number.
Code:
Function lngConvert2(strTemp)
    lngConvert2 = Asc(Right(strTemp, 1)) + Asc(Left(strTemp, 1) * 256
Hope this works... ________
George, M
 
Hi,
thanks..but,Everyhting workimng with windows..as I said my app is for asp web server chillisoft running on linux
the same error

Invalid procedure call or argument 'asc'

The problem is with asc function and not with cStr/cLng..

i used ascw instead of asc..even then not working and error

Invalid procedure call or argument 'ascw'

But if i use 'ascb'---no error,,but ht and width are 0

any help to solve
what can we use instead of asc..in lunux platform

thanx very much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top