GeorgeS
Posts: 206
|
| Posted: 10/14/2004, 11:21 PM |
|
Hi,
I'm not ure what I'm doing wrong with aspJPG component.
I have it installed and it's working because ASP page created in Notepad generates thumbnails just fine.
However, when I insert the same code into CCS into FileUpload1_AfterProcessFile event the very first line gives me an error:
"An error occured when uploading file specified in FileUpload1. Error description: Microsoft VBScript runtime error, Variable is undefined. "
Here is this line:
Set Jpeg = Server.CreateObject("Persits.Jpeg")
Here is my Notepad asp file that works:
<%
Set Jpeg = Server.CreateObject("Persits.Jpeg")
Jpeg.Open "C:\New\1105A.jpg"
' New width
L = 30
' Resize, preserve aspect ratio
Jpeg.Width = L
Jpeg.Height = Jpeg.OriginalHeight * L / Jpeg.OriginalWidth
' create thumbnail and save it to disk
Jpeg.Save "C:\New\html\1105A.jpg"
%>
Thank you.
_________________
GeorgeS |
 |
 |
GeorgeS
Posts: 206
|
| Posted: 10/14/2004, 11:28 PM |
|
OK, I got it.
Forgot to Dim Jpeg & L.
_________________
GeorgeS |
 |
 |
|