Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Reading/writing .ico files

New Here ,
Nov 06, 2008 Nov 06, 2008
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.
TOPICS
Advanced techniques
424
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 06, 2008 Nov 06, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 10, 2008 Nov 10, 2008
LATEST
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."

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources