The actual contents of the file or the filename? if its the actual content of the file I guess you should do a if the file is a text file <cfset format = "text"> else <cfset format = "binary">
if text <cffile action="read" file="path file" variable="theFile"> or depending on the file if binary <cffile action="readbinary" file="path file" variable="theFile"> And then <cfquery name="Insert" datasource="smoedb"> INSERT INTO blobs (content) if binary VALUES <cfqueryparam cfsqltype="cf_sql_blob" value="#theFile#"> else VALUES <cfqueryparam cfsqltype="cf_sql_clob" value="#theFile#"> </cfquery> On Thu, 20 Jan 2005 08:18:52 -0800 (PST), Discover Antartica <[EMAIL PROTECTED]> wrote: > Hello, > > I am using <CFPOP>. Currently, it is saving files in a folder on disk. I want > to save it directly to the database. > > Is that possible with coldfusion? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191214 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

