The Coldfusion Open Source Forums
Home | ImageCFC | CFFM | BlogCFM | CFMBB | CFOpenMail / ImapCFC | CFOpenChat
Forums | Profile | Inbox | Members | Chat | Search | Login | RSS
Vivio Technologies Dedicated Hosting
New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page

Forums: ImageCFC Forum: Problem using resize()
Created on: 01/27/09 {ts '2018-07-16 13:01:00'} Views: 5788 Replies: 2
Problem using resize()
Posted Tuesday, January 27, 2009 at {ts '2018-07-16 13:01:00'}

Hi,
When trying to use the component to resize and save images I get the following error msg:

Object Instantiation Exception.
An exception occurred when instantiating a java object. The cause of this exception was that: .

The error occurred in /opt/apache2/htdocs/testrich/ImageLibrary/admin/image.cfc: line 746
Called from /opt/apache2/htdocs/testrich/ImageLibrary/admin/image.cfc: line 371
Called from /opt/apache2/htdocs/testrich/ImageLibrary/admin/newimgform2.cfm: line 128
Called from /opt/apache2/htdocs/testrich/ImageLibrary/admin/image.cfc: line 746
Called from /opt/apache2/htdocs/testrich/ImageLibrary/admin/image.cfc: line 371
Called from /opt/apache2/htdocs/testrich/ImageLibrary/admin/newimgform2.cfm: line 128

744 :          out = createObject("java", "java.io.BufferedOutputStream");
745 :          fos = createObject("java", "java.io.FileOutputStream");
746 :          fos.init(tempOutputFile);
747 :          out.init(fos);
748 :          JPEGCodec = createObject("java", "com.sun.image.codec.jpeg.JPEGCodec");

additional java error code:
Caused by: java.io.FileNotFoundException: /opt/apache2/htdocs/testrich/ImageLibrary/admin\1908DFF1-E3B6-98FA-96CBCAC7BEB7784A.jpg (Permission denied)
   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
   at java.io.FileOutputStream.<init>(FileOutputStream.java:70)

Have used the component to get image info and it works ok. Any help would be greatly appreciated.

Edited 01/27/09 {ts '2018-07-16 13:06:00'}
RE: Problem using resize()
Posted Friday, January 30, 2009 at {ts '2018-07-16 15:55:00'}

Heellllllooooooooo! Anybody out there? Smile

RE: Problem using resize()
Posted Monday, October 5, 2009 at {ts '2018-07-16 02:56:00'}

<deleted>

Edited 10/05/09 {ts '2018-07-16 08:26:00'}

New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page
Subscription Options
Subscription options are available after you log in.

There are 37 active user sessions right now.