Skip to main content
Participant
November 6, 2008
Frage

Reading/writing .ico files

  • November 6, 2008
  • 2 Antworten
  • 452 Ansichten
I'm working on a coldfusion system where users can upload their own favicon files for their site. To allow compatibility with IE I want to allow for .ico files but I need to determine their dimensions so that I can limit the size. The restrictions of the JVM mean that Coldfusion can't read or write .ico files and I was wondering if anyone had any suggestions.

I'm currently trying to write a function which uses the Java JIMI library ( JIMI) but it's not simple and keeps preventing me from deleting images once I've read them (possibly because I'm using it wrongly).

If anyone can help then that'd be great.
Dieses Thema wurde für Antworten geschlossen.

2 Antworten

BKBK
Community Expert
Community Expert
November 11, 2008
A posting on image processing made me have another look at your problem. I think you should install the hotfixes. One of them actually solves the problem whereby "CFImage and the image functions can leave an image file locked after an initial write to disk in Adobe ColdFusion 8.0.1."

BKBK
Community Expert
Community Expert
November 7, 2008
[Jimi] keeps preventing me from deleting images once I've read them (possibly because I'm using it wrongly).

Some process might still be holding a lock on the file. However, I don't see anything in your function that can do that. I therefore suspect either the file or the implementation in your Jimi.jar. I had no problems deleting files when I used the jar-file from http://rsb.info.nih.gov/ij/plugins/jimi.html