Saving files(txt,pdf etc.) in database received from client

Code:
<!--- Sets the file source --->
<cfset rfsfile = "#form.accepted_attachedfile1#">
<cfset rfsid = "#form.rfsid#">
<!--- Reads The Files Binary Data --->
<cffile action="readBinary" file="#rfsfile#"
variable="MyVariable">
<cfset MyBLOB = toBase64(#MyVariable#)>
<!--- Save the file in database --->
<cfquery datasource="manpower" username="devegov"
password="dev@egov" name="insertfile">
insert into TBL_RFS_ATTACHEDFILES (RFS_BLOB)
values (<cfqueryparam value="#MyBLOB#"
cfsqltype="cf_sql_blob">)
</cfquery>
<cfoutput query="insertfile">
successfull!!!!!!!!!!!!!!!!!!
</cfoutput>
<cflocation url="/rfs_backend/RFS_detail.cfm">
The table is :
create table TBL_RFS_ATTACHEDFILES (
RFS_BLOBID INT generated by default as identity (increment by
1,start with 1) not null,
RFS_BLOBNAME VARCHAR (50),
RFS_BLOB BLOB (500000),
primary key (RFS_BLOBID));
I am getting the following error in this code.........
Error casting an object of type to an incompatible type.
This usually indicates a programming error in Java, although it
could also mean you have tried to use a foreign object in a
different way than it was designed.
The error occurred in
C:\CFusionMX7\wwwroot\rfs_backend\RFS_SaveRFSDetails.cfm: line 22
20 : <cfquery datasource="manpower" username="devegov"
password="dev@egov" name="insertfile">
21 : insert into TBL_RFS_ATTACHEDFILES (RFS_BLOB)
22 : values (<cfqueryparam value="#MyBLOB#"
cfsqltype="cf_sql_blob">)
23 : </cfquery>
24 : <cfoutput query="insertfile">
Please try the following:
* Check the ColdFusion documentation to verify that you are
using the correct syntax.
* Search the Knowledge Base to find a solution to your
problem.
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1) Gecko/20061010 Firefox/2.0
Remote Address 127.0.0.1
Referrer
http://localhost:8500/rfs_backend/RFS_detail.cfm?rfsid=3008
Date/Time 07-Dec-06 03:48 PM
Stack Trace
at
cfRFS_SaveRFSDetails2ecfm555042871.runPage(C:\CFusionMX7\wwwroot\rfs_backend\RFS_SaveRFSD etails.cfm:22)
java.lang.ClassCastException
at
coldfusion.sql.InParameter.setStatement(InParameter.java:49)

There is an exclusive forum for forms - {forum:id=82}
And please dont use the words like Urgent, ASAP in these forums.. That will kill the chance of getting replies to you..
Edited by: jeneesh on May 16, 2013 2:45 PM

Similar Messages

  • Problem saving files to PDF in Illustrator CS4 [Mac]

    Hi all,
    I'm having a problem with saving files as PDF's in illustrator CS4 - something I've happily done for years until about a week ago.
    It seems to be something to do with the "Save As" command. When I select Save As and then select PDF, the PDF saves as a copy of the current file rather than it saving as a file itself. It also doesn't rename itself properly. Saving a file in the .ai format seems unaffected.
    The multiple page function also seems to be affected - I can create multiple pages no problem, but upon saving the PDF reads as a single page PDF in both Acrobat and Preview. Reopening the same file in Illustrator reveals that the extra pages are there, but not showing in the PDF.
    Any thoughts? I've trashed preferences and repaired permissions, but no joy....
    Any help greatly appreciated

    Have you entered specific artboards in "use artboards"?

  • I have transferred Word files from my PC to my new Mac Book Pro and some of the files cannot be clicked on and opened or even deleted because you can't select them. There are a variety of document files and pdfs etc. Any ideas ?

    I have transferred word files form my PC to my new Mac Book Pro. Some of the word files are feint and will not open as you cant select them. Also you cant delete them either because the cursor wont highlight or select them. Any ideas anyone?

    Have you tried looking at the file in list view in the Finder and seeing if they actually occupy any space? i.e. "Size"? There shouldn't be any problem with Office documents, Adobe pdfs, etc. If they migrated properly - did you use Migration Assistant or some similar utility?
    Regards,
    Clinton

  • Saving files as .pdf and locating

    How do I save a file as .pdf t my hard drive so I can locate
    it for later sending as attachment?

    Hello,
    It is best to save it to your desktop, for easier location
    later. Right click the file, choose 'save as' and select 'desktop'
    as your destination.
    Cheers!
    Michelle

  • Print query regarding saving file as PDF/X-3

    I have a magazine ready for print for a client that uses a printer to print it. I am wondering whether or not the PDF I send them of the magazine (from InDesign CS5) will have any issues if I use the PDF/X-3:2003 Standard. Compatability is set to Acrobat 4 (PDF 1.3) and the document will have all necessary bleed marks etc. The reason I am using this standard is to stop the PDF creation process from not showing certain transparencies used with InDesign tools. It's a only a few pages that have this issue, where when I send them for proofing the effects from ID glow etc don't show up unless I use the  PDF/X-3 standard which keeps them in. So I am just wondering if it is ok to send the whole document as this standard when it goes to print (will there be any other issues with it saved this way? If so I will probably have to save the pages in question seperately and them pull them on as PDF's to the ID file and then save normally. The print site is modern so I doubt they have old software but I don't know for sure.
    Thanks for your time.

    In terms of a “state-of-the-art” PDF standard for prepress, Adobe recommends PDF/X-4 for overall workflow and output reliability. It supports full ICC color management as well as live transparency. All major RIPs (and software updates for same) from the last half dozen years as well as Adobe Acrobat fully support PDF/X-4.
    That having been said, there must be a “meeting of the minds” between the content creator/provider and the print service provider. If the print service provider can't support the PDF/X standard you wish to provide, you have two real choices - conform with what they want (and hopefully not suffer from the consequences) or find another print service provider.
              - Dov

  • How can I increase resolution when saving file as PDF?

    I am sending some illustrated files to a professional printing press that only accepts PDFs, however they say the resolution is too low and should be 300dpi. How can I increase resolution? Only option I could find was to try to create a new filter in Color Sync by duplicating PDFX3 filter and editing it to the desired resolution, however I couldn't get new filter to save my resolution inputs. Any help is appreciated!

    You really need something like Acrobat which will install a "Save as Adobe PDF" under the PDF menu. You can select press quaility," "high quality print," etc., and get a true high res PDF.
    If you'd like to just give it a shot, try downloading one of the OS X CS6 suites that include Adobe Acrobat Pro for a free 30-day trial. I've never used SketchBook Pro, but Acrobat may help you out.
    Clinton

  • Issue saving files as PDF

    I have Windows 7 on my computer.  I had to recently restore Windows on my computer and since then I can save Word documents as PDFs.  Please assist.

    Yes I think I understand the problem and I believe it is expected behavior and I will explain.
    You must convert the images to cmyk in photoshop first before placing them in Illustrator or convert them after but since they are linked the conversion has to take place in photoshop by using the link panel to edit the original.
    Now it should work as expected but I did this without the using a black key line on the rectangle I used for my clipping so once you have the rectangles position if you still find you have this problem then go bak and redo the clipping mask without the black stroke.
    This is my result in Acrobat with the images converted to cmyk so I am positive you stated with RGB and did not convert before placing.
    As you can at 6400% magnification it is fine. This is the top edge of the two butted images when saved as pdf after converting the files to cmyk in Photoshop. PDX 1a supports CMYK.
    This is what it looks like when using the inked files when they are rgb

  • Saving file as PDF on Desktop I get notice "The Printer Name is invalid" How do I get a file to save as PDF?

    Trouble saving a large 93 page script Final Draft to a PDF file on Desktop. I get notice "The printer name is invalid"
    What to do?

    I don't think PDF Pack is connected to this in any way. It won't be part of the process.
    Take a look at After installing 7.1.3 on XP 64, trying to Save As PDF will return an Error Initializing Printer and a Printer Name Not …

  • Error saving file as PDF   FM 11.0.2.384  Windows 7

    "Can't launch Acrobat Distiller to create PDF file."
    I cannot find Distiller on my workstation.  I do not see it in the Control Panel.  I also cannot find Distiller on the distribution media.
    I suspect it is not installed.
    Can anyone help?
    Thanks,
    Jerry

    Hmm.  It should not be this hard.  I worked in software development for two decades and made stuff work.  But I am quite frustrated.  My workstation build is standard.  My FM is current.  This is not like I am expecting some little used, obscure feature to work.  Saving a PDF should be mainstream.  It's like spell-checker not working.  Huh?
    As far as I can tell these are the primary software components involved:
    1.  Framemaker 11
    2.  Adobe PDF Creation Add-on X
    3.  Adobe Reader XI  (11.0.04)
    4.  Windows 7.
    Am I missing any others or are any of the above not in this equation?
    I've now worked through the advice given above with no luck but I should not have to rely on luck.  I am trying to make a living with this software.  
    Thank you Amis and Mike for taking the time to respond to my request for help.  It is very kind of you.  I am new to this forum and in spite of my issue I get a very positive vibe with the way people help each other here.
    Thanks again,
    Jerry

  • Creating external files (.txt, .json, etc)

    Hello everyone,
    I'm currently trying to find out how to create external files from a SWF/exe/app file created in Flash. Essentially I'm building a program to create templates for levels in a game. The SWF will be run locally (e.g. not online) and will allow the user to add/remove objects to a level of their design. They then need to be able to save the level template (ideally I need to be able to save as a JSON* file, but I'm sure I could get away with just a simple txt file) somewhere on their computer. These templates will them be imported by the game itself (not written in Flash, hence why I need to save the data as a json or txt file), which will then re-create the levels from the data contained in the save file.
    I had assumed this would be something that was really simple to do, but I cannot seem to find any tutorials or information on how to create external files. I can find plenty on reading from existing external files, but nothing about actually writing a new file entirely. I have read a few people complaining that non-local Flash SWFs cannot access the user's hard drive for security reasons, but cannot find any information on local SWFs.
    If anyone could tell me even roughly what I'm looking for, it would be greatly appreciated. I'm a bit stuck just now haha
    *I have downloaded the corelib files which allow me to work with JSON files

    Flash is not able to write any type of text file on user system.
    U have to use air or zinc to intract with file system.
    Yes u can use shared objects also. Which stores value to user computer and browser stores cookies on user system

  • All Firefox tabs and windows lock up when a single tab can't download a file (video, pdf, etc.)

    If I am trying to load a webpage that contains a video, pdf file, or other large file, sometimes the webpage locks up, and then ALL other Firefox windows and tabs lock up as well (the entire program is frozen). This doesn't happen with IE or Chrome (in Internet Explorer, even though a tab may lock up from loading a large file, the other tabs and windows are still useable). Is there some kind of pluggin I can install to prevent this from happening?

    Hi - yes I can! I hadn't noticed that little arrow before, thanks.
    However I would really like to stop it hiding the first tab all the time.... Even when I navigate to the first tab using that "list all tabs" arrow, it still remains 'hidden' (i.e. I can't see a tab up the top, even when that tab is active. And when I navigate away from it to another tab, it is invisible again).
    Any ideas?
    Thanks

  • Saving files as BLOB into oracle database

    I have files to insert into the oracle database as a BLOB field. Please give me some code to display and store the files into the database.
    Cheers..,
    aruni.

    Is your suggested approach limited by Oracle's 4k limit? No it isnt limited to 4k ...Somehow that 4k chunk is stuck in the back of my mind as a limit... Anyway, I recalled some one posted a question regarding Oracle's BLOB/CLOB and was having difficulty either reading or writing so I've decided to poke around a little and this is what I came up with:
    1) Oracle's maximum size of a BLOB/CLOB is said to be 4gb -- but I failed to see how that can be accomplished thru Java since the setBinaryStream and setAsciiStream methods require a signed int as a length specification.
    2) In reading a LOB, the input stream has an internal MAX_CHUNK_SIZE set to 32768, in order to read anything bigger, it must be done in multiple chunks.
    ;o)
    V.V.

  • Adding audio / music then saving file as pdf

    I produce a monthly magazine using pages. Once done I save the file as a PDF.
    I woud like to add a audio file or music file to pages then save it as a PDF and send it out.
    Is there a way of doing this?
    I know you can drag and drop a audio file onto the page but it disappears when you save it as a PDF and I do need the PDF format.
    Any help?
    Thanks!

    You need to add all media files into the pdf using Adobe Acrobat Pro. Pages won't include them.
    There may also be 3rd party apps and websites that do the same task.
    Peter

  • Saving Files in PDF using third party plugin

    I have been using the Office 2007 plugin "save as PDF" to convert all my office documents to PDF format. However, after upgrading my reader version to 9.0, each time I try to convert a document, the output is a jumbled list of words with no structure. I tried reinstalling Adobe Reader, but to no avail. Any suggestions?
    I use Windows Vista SP1 by the way. The problem did not occur when I had version 8.1 of the reader installed. My computer is a HP with a Intel Dual Core processor and 2GB RAM Memory....

    Yeah. I was going to say that you should just re-install Adobe 8.1.2.
    Have you tried it?
    Duane

  • Export result of an execute_query to a file ( txt , EXCEL , etc..)

    i work with Forms6i, and i want to export the result of an execute_query to file with any extention.
    the execute_query is applicated to a block after pressing button Execute.
    thanks in advance

    Hi,
    check out TEXT_IO package on Forms' Help...it should be what you are looking for.
    Bye, Marco

Maybe you are looking for

  • Looking for an ipad in-wall flush mount

    Does anyone have any idea where I can get an in-wall flush mount for an ipad.  Must have room for charging cable. Don't want the whole system, or network, just need the wall mount.  I cannot find any online to save my life.  We need it for a custom b

  • Tricky Report

    Hi, I've got a tricky reporting problem that I'm trying to work through.  We have a monitoring database that I pull from to create a report.  I have the report setup to show errors grouped by day in the week, then by an office.  The problem however i

  • Help with scenario

    my scenario sendss one interface to 2 target interfaces. i had to use enh interfce determinatio. In IR, while creating a scenario is it possible to specify enh interface determination? is there a way i can do it in IR which will reduce manual step in

  • Posting run PCP0 list disappearing

    Hi , I have created a Posting run and posted to FI . The Run value seems to disappear from the list once the posting is done . Do you have any idea how this work .I am ssing the old value runs avilable .How can I bring it back to the list again. Rega

  • What is wrong with this system anywaay???

    I went through heck registering and trying to figure out where in the blazes to post something.  Like everything else connected with this system, Adobe, pdf, reader, media player, &tc... it's hopelessly overloaded barely to outright non functional an