By using cfcontent to pull of the pdf of the file

Hello

I shopped in the forums and have not found a solution. What I'm trying to achieve is simple, but have problems to run.

I want to spend a dynamic url string of a web mapping application to a cold fusion page which then opens the pdf file in the users browser. This is an example of the url that will be sent to this page and based on what functionality, the user selects, subdir and page_id will be dynamic:

http://localhost/displayImage.cfm?subdir=60 & page_id = 3807444

This is what I have so far for displayImage.cfm, it is just a beginning, I know that I need more, possibly content cfheader? When I run this code I get an error saying the file was not found.

<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / BY" > ".

< html >

< head >

< title > Untitled < /title >

< / head >

< body >

< cfquery name = "Polls" datasource = "sire", dbtype = "odbc" >

Select *.

from slco_sire.dbo.surveys_doc INNER JOIN slco_sire.dbo.surveys_page

ON slco_sire.dbo.surveys_doc.doc_id = slco_sire.dbo.surveys_page.doc_id

< / cfquery >

< cfset picture = "#url.page_id #" >

< cfset sub = "#url.subdir #" >

< cfcontent line = "\\path\to\file\#sub#\#picture#" type = "application/pdf" reset = "yes" >

< / body >

< / html >

Any help would be very pleased, I'm stuck.

No, the variables are not the problem.

The ColdFusion service runs under a specific user account, and it is this account that must have security privileges to access the file on the network where PDF files.

You need to ask your network administrator that you are looking for.

See you soon

Eddie

Tags: ColdFusion

Similar Questions

  • You received the C00D1199 error message using Windows Media Player. The file type is supported by the drive, but the file was compressed by using a codec that is not supported by the player. »

    "You have received an error C00D1199 message while using Windows Media Player. The file type is supported by the drive, but the file was compressed by using a codec that is not supported by the player. »

    The file audio im trying to open, a conference for a class I'm taking. Is there anyway that I can get the audio to play? program in windows media, itunes, quicktime player?

    Hello

    You can check this link:

    http://Windows.Microsoft.com/en-us/Windows7/C00D1199

    Note: This link implies also on Windows vista.

  • I've been using Illustrator but I opened the files would go to the bottom of the page as so dirty. I check my drivers and then uninstalled the program who intend to reinstall, but now it is said that the files are already installed.

    I've been using Illustrator but I opened the files would go to the bottom of the page as so dirty. I check my drivers and then uninstalled the program who intend to reinstall, but now it is said that the files are already installed.

    No one can tell you anything without the proper system or other technical details info. If you have installation problems, start by running the cleanup tool:

    The Adobe Creative Cloud Cleaner tool allows to solve installation problems

    Mylenium

  • I have 12 FrameMaker files can I use FrameMaker 2015 to generate a PDF of older file?

    I have files created in FrameMaker 12.

    Can I use FrameMaker 2015 version to open the files and generate a PDF file?

    I get error when I try to do.

    I just want to know if it is possible or not.

    Thank you

    Alice

    Yes, it should be possible. What kind of error do you get?

    Open all files and save them as FM2015 versions first. If you have a book file, open all the files of the components before trying to create a PDF file. [Use the Shift key the shortcut in the file menu for the book to open all the files at once.]

  • I'm trying to get help with corrupted files or missing. I can't use my recovery Cd, because the file is missing in order to make it work properly.

    I tried to use the restore cd that came with my pc it want to work because it lacks the file I need to perform a recovery and try to fix it. Some of my updates are not installed.

    Hello

    1. have you received an error when update failed?
    2. that you get an error message saying that some files are missing or corrupt?

    You can check for errors in the Windows Update history.
    To check the update history:
    a. Click Start, click Control Panel.
    b. now click on Windows updates.
    c. click view update history.

    Refer to this link for help:
    http://Windows.Microsoft.com/en-us/Windows7/see-which-Windows-updates-are-installed

    Try to analysis of SFC (System File Checker) running on your computer.

    Scan SFC will Windows replace corrupted or missing system files on your computer.
    Scan sfc enforcement procedure:
    a. Click Start, click principally made programs, accessories, right-click on command prompt and select run as administrator.
    b. click on continue or provide administrator credentials if prompted.
    c. in the type in the following command prompt window and press ENTER:
    sfc/scannow

    Refer to this article for more information:
    http://support.Microsoft.com/kb/929833

    Let me know the exact error messages and also a brief description of your problem so that we can advance troubleshooting.

    Kind regards
    Afzal Taher-Microsoft Support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Is it safe to use a computer without knowing the files it contains?

    Original title: keep this computer?

    It gave me a computer by a person since I was a new single parent and can't afford it and have not had a more than a year. The problem is I do not know the previous owner and there are 100 of its files on it and she's still on as an administrator, so I can't delete anything. Can I use this pc or not, not knowing what is in all the files? Also I buy two PCs last year for like $40 off Criags list, I got ripped off because it wasn't working, the an and the other that I screwed up because I became 'clear' the crazy. The reason is my soon to be ex husband would hack into each of my email boxes over the years where we were married and my emails would get even sent a text message on his phone, don't ask me how, but I saw it. So I went a little crazy, erasing things afraid someone will see all my stuff again, I don't know what's on a pc which is supposed to be there and what follows you and ect. and should not be there or is spyware or something so it's the word just for someone hacking and tracking you? Where do you take classes pc free/low cost to? I don't want to spoil this pc too (in fear) if I can find a way to access the previous owners files!

    If the PC is a PC brand manufacturer may a hidden restore partition, if she, or you have been provided with the recovery discs, you can restore the PC provided that the factory, all its contents will be destroyed in the process, and it will be like when it was first purchased.

  • Is it possible to know if transparency (multiply / darken etc.) has been used in any part of the file select all objects?

    I recently had problems with Illustrator files with objects and text.

    These elements consist of spot colors and have effects, such as multiply, obscure or Luminisity applied to them.

    Our current workflow requires us to save the only 1 file .ai to PDF which must pass through a TEAR, then accelerated for printing by other software.

    Version staircase to the top of the file is sent to me, opened and edited in Illustrator and then re-recorded in PDF format to send to a print finisher (varnish or sheet, for example)

    It is at this point that some items were not displayed correctly or at all.

    I know that sounds complicated process (and is!)... but is it possible to work around this issue?

    Thank you

    The Flattener Preview Panel?

    Check "all transparent objects.

  • Computer froze while then restart using Yahoo, has started checking the files on the drive.

    Original title: is there a MicrosoftXP NTFS file system? If SO, is there a file 875?

    Working yahoo trying to open the file that was sent when the computer locked upand I had the switch works / stop. When I rebooted it came up on top of the page that opens, he Microsoft XP in the upper right corner with the logo but not color. She has also shown a verification program files on three washers on a message from a third party came this missing 875, after a short wait of the comuter open file. It is a real program under XP or is a person playing with the computer? I'm computer dumb and need all the help I can get.

    Hello

    It seems that the computer has started when you have turned on the computer running chkdsk.

    CHKDSK is a valid Microsoft XP program and it checks bad blocks on the disk.

    As Yahoo application was running at this time, the 875 file could be belongs to it & seems to be corrupted.

    For more information, refer to this link: How to make Windows XP disk error checking?

    I recommend you to reinstall the application that was running at this moment of time if they are not running properly.


    Reference:
    How do I change or remove a program in Windows XP?

    Hope the helps of information.

  • SOUL CC 2014 (last year) when I import a file, the last game before I used is automatically applied to the file

    And I can't seem to find a way to stop this behavior.

    If I order click on the preset below the file in the queue pane and select delete, it deletes the preset and the queue file.

    Any help appreciated.

    Thank you

    MtD

    A preset will always apply at the same time you import a source. If the preset is not one you like, you can choose a new one drop-down Format/Preset menus or you can drag a new preset browser predefined on top of the existing. If you drag a new preset to the source rather than the existing preset, it will create a second output.

  • JavaScript can be used to replace images in a PDF from image files batch?

    I want to batch process the images in PDF files. I think how to do would be to export all the images in the PDF to separate image files, batch treat those in a photo editor, and then use javascript to batch replace images of the original PDF with the transformed versions. However I could not find any indication of this ability in the kit SDK Acrobat or any mention on the internets to anyone who tried. Does anyone know if we can at least in theory? Can someone point me to the right function to use?

    Note that there are more in these PDF documents as images, so rebuild new PDF files processed image files is not an option.

    No, it isn't. JS doesn't have access to the image stream in a PDF file. In principle, you can overlay the old images with new ones (using the button fields to contain the new images), but then the problem is that you cannot detect the location of the old images. In short, you need to look for an alternative.

  • When you use Windows Explorer to view the files and folders, the thumbnails of image files appear briefly then are replaced with the default icon of the image file. I tried the answers to similar problems, but none worked.

    Browse the folders with image files, I cannot see the thumbnail icons for images correctly.  I know, it should be possible, but I can't do it.

    When I first open a folder in Explorer, I see the correct images for a fraction of a second, then all images are replaced by the thumbnail of the image file (which looks like part of a digital SLR).
    I put all folders to display picture to display the preview and the filter, and the "always show icons never thumbnails" is not checked.  Display file icon "on the photos' is unchecked (I tried checking, too, without change).  I also deleted the thumbnails using disk cleanup as suggested on another question, but which did not allow them.
    The result is that, if I want to open an image for editing or downloading, I have to use a third-party application (for example, Pentax Photo Browser) to preview images, and then return to the Explorer window to select the correct file by name. Don't try to difficulty of these things that are not broken.

    izzlecrate,
    You might want to try it and I just did this procedure myself a moment ago and surprising, it worked!  First of all I must tell you that I have Windows Vista, but the information I got was for Windows 7 and it worked.

    First: You must create a NEW FOLDER and put it on your desktop.
    Second: Move or copy the contents of the original file in the NEW FOLDER on the desktop. I copied the content, just in case something went wrong.
    Third: After that is finished and all the contents are inside you.
    Fourth: On the desktop right click on the folder and click Properties at the bottom of the box.
    Fifth: Click Customize tab at the top and then the Middle click on DEFAULT settings for the folder.  Click on apply to, click OK and your done

    NOW! You can move the folder wherever you want by drag-and - drop the folder and when it's done and that's the best part, you should see the thumbnails of the folder on the EDGE of the folder that you just created.  It worked for me and I hope it works for you.
    I have 10 years of experience with my computer and have troubleshooted my friends for viruses and other computer problems successfully.  I'm advanced computer user.

    That this is done, it restores the folder its original settings.  Good luck! Rick

  • Laterally, IPhone video clips will play in WMP, rotate using Live Movie Maker and the file will not play on WMP

    It is perhaps one of the most common glitches in WMP, but MS is so confused, there is no solution (codec) to set the Iphone vids vertically in WMP.

    When you follow the web tutorials to rotate the clip using Live Movie Maker, it records the video to the format .wlmp that won't play in WMP.  So if you try to publish a movie there no option but send on Youtube or add Codec, which opens a page of gibberish, or when you try to save the film each option results in error "the device is not ready".

    If a guru of SevenForums cannot browse this intuitive nonsense, how millions of average users who find WMP plays videos of the Iphone on the side, while MS allows their ignorant WMP like some stubborn dinosaurs blunder?

    Hello

    This behavior can occur if the video was recorded in landscape mode.  You can see the link given below the similar question.

    http://social.answers.Microsoft.com/forums/en-us/w7pictures/thread/4419e884-0C35-493b-8399-4b0db1d77162

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Can I use symbolic links to share the file abook.mab for two users

    If I delete all the user profile .mab files and replace it with a symbolic link pointing to the same file in the other profile will be what sync my address for two profiles books. I have win7.
    The object is to have two user accounts Windows sharing the same e-mail data. I already have them show up on the same basis of messages.
    I would like to know if deleting a .mab file will only cause it be re-created.
    I hesitate to experiment.
    Thank you

    Remove files two default mab, abook.mab (PAB) or history.mab (collected addresses) will result in empty files with these names are automatically re-created on reboot of TB.

    There are a few ideas for sharing here address books:

    http://KB.mozillazine.org/Sharing_address_books

  • Is there a key combination to use for "cance" to 'replace' the file?

    There are lots of small windows which arise and which do not seem to have a combination of keys I can find to replace the mouse.  The above example is the case where you want to replace a file during the save operation.  The only thing I can find what works is by dragging the cursor over the mini window and clicking "replace".  Are there any key combination?

    In this dialogue, and others, the second option (in this case, 'Replace') are selectable by pressing the space bar.

  • Memory card using blackBerry Smartphones - cannot display the file

    I have a 8130 with software v 4.3.0.97. I installeed and formatted a 2 GB Sandisk Micro SD card Media settings are the following:

    Media card support: WE

    Encryption mode: NO

    Mass storage Mode support: WE

    Auto enable mass storage Mode when connected: YES

    With the help of the Explorer Windows and TDM I transferred music, photos and files to the card. Music plays very well. I can see the photos. But whenever I click on a Word doc to open it, I get this message: unable to display file/media card/Blackberry/filename.doc

    What I am doing wrong?

    ETA:

    I need a third-party application to open these documents. I downloaded Mobipocket Reader on my PC, the program recognized a downloaded a player for BB. I have imported the Word documents and can now read on the BB. Yayee!

    Nice taken,

    Please address the position,

    Thank you

Maybe you are looking for