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

New CFIMAGE to BLOB

New Here ,
Sep 19, 2007 Sep 19, 2007

Copy link to clipboard

Copied

I am playing with the new CFIMAGE (very nice-by the way!!) and cannot figure how to save a form variable which is a base64 image directly to an MS SQL database BLOB without saving the image to a file and then reading it and writing it to the DB as a BLOB.
The error I get is "The source file should contain an extension,so that ColdFusion can determine the image format."
How do I give a base64 image an extension (or source filename)?? I have tried writing to the structure variable cfset myimage.source="test.jpg" but that was just a shot in the dark. Seems there should be a better way to do this then writing the image to a file, re-reading it, and then deleting it.

Ideas?? Dan
TOPICS
Advanced techniques

Views

306

Translate

Translate

Report

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
New Here ,
Oct 01, 2007 Oct 01, 2007

Copy link to clipboard

Copied

LATEST
Soooo, know one knows anything about CFIMAGE??

Votes

Translate

Translate

Report

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
Documentation