Download ascii file procedure -problem as its getting binary after download

Hi ,
I have create a application that will download a file from a customised blob table by calling the procedure below which is as per oracle documentation:
CREATE OR REPLACE PROCEDURE download_my_file(p_file IN NUMBER) AS
v_mime VARCHAR2(48);
v_length NUMBER;
v_file_name VARCHAR2(400);
Lob_loc BLOB;
BEGIN
SELECT b.MIME_TYPE, a.file_content, a.file_name,A.file_size
INTO v_mime,lob_loc,v_file_name,v_length
FROM PCD_PROCESS_TBL a,PCD_CNTL_TBL b
WHERE a.seq_no =p_file AND ROWNUM<2;
-- set up HTTP header
-- use an NVL around the mime type and
-- if it is a null set it to application/octect
-- application/octect may launch a download window from windows
owa_util.mime_header( NVL(v_mime,'text/plain'), FALSE,'ISO-8859-4' );
-- set the size so the browser knows how much to download
htp.p('Content-length: ' || v_length);
-- the filename will be used by the browser if the users does a save as
htp.p('Content-Disposition: attachment; filename="'||SUBSTR(v_file_name,INSTR(v_file_name,'/')+1)|| '"');
-- close the headers
owa_util.http_header_close;
-- download the BLOB
wpg_docload.download_file( Lob_loc );
END download_my_file;
The problem is that when our process updating the blob table with .dat file from Unix the data getting inserted fine.The file is basically a ascii file. But after downloading this by mime 'text/plain' or 'application/octet' i can see its getting as a binary file and it is not carriage return by a new line.A space like character getting inserted inside each line .
can anybody please help out of that how can we get rid of this.
I even change the blob to clob but still the problem persists even for clob the procedure not getting called.
Thanks in advance,
Deba

Sounds like the problem you're having is the mismatch between the Unix text file format and the Windows text file format.
Specifically, Unix uses LF (line feed) to denote the end of a line, while Windows uses CRLF (two characters, carriage return and line feed).
If you open the file in Wordpad, you should see it ok.

Similar Messages

  • When I click on a link to a file, (for instance a Filesonic link) I used to get asked if I wanted to run or download the file. Now it just goes straight to download. How can I stop it doing this? Thank you.

    When I click on a link to a file, (for instance a Filesonic link) I used to get asked if I wanted to run or download the file. Now it just goes straight to download. How can I stop it doing this? Thank you.

    Go to Tools -> Options -> Applications -> Search for your file format, .zip,for instance,
    Select ''' Always ask''' from drop down menu.

  • I can not download any files using Safari ? when I choose to download application file the URL include the file name and stop responding. Any help??

    I can not download any files using Safari ? when I choose to download application file the URL include the file name and stop responding. Any help??

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. The Guest login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled under Mac OS X 10.7 or later, you can’t boot in safe mode.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Error when opening itunes : iTunes has stopped working ''A problem caused the program to stop working correctly''. When I repaired damaged files the problem still exists and also after uninstalling and redownloading and installing itunes. I have windows 8

    Error when opening iTunes : iTunes has stopped working '' A problem caused the program to stop working correctly''.
    When I repaired damaged files the problem still exists and also after uninstalling, redownloading and reinstalling iTunes.
    My pc is working with windos 8.
    Is there a solution?

    Hey there Rodney274,
    It sounds like you are getting an error from iTunes when you launch it. I would try the troubleshooting in this article named:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Start with troubleshooting for 3rd party plug ins section, then the rest of the article if needed:
    Start iTunes in Safe Mode
    Open iTunes in Safe Mode to isolate any interference from plug-ins or scripts not manufactured by Apple.
    Hold down Shift–Control while opening iTunes. You should see a dialog that says "iTunes is running in safe mode" before iTunes finishes starting up.
    Click Continue.
    See if the issue you're experiencing persists in Safe Mode.
    If you have the same issue while iTunes is in Safe Mode, proceed to the "Create a new user account" section. If you don't experience the same issue, follow these steps to remove third-party plug-ins.
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • HT204370 I get this after downloading: "The selected movie won't play on one of your connected displays." What do I do?

    I get this after downloading a movie: "The selected movie won't play on one of your connected displays." What do I do?

    I fixed it. I just had to unplug my second monitor and re-plug it in. All is better now.

  • I downloaded fire fox and installed but its not opening after installation

    I downloaded fire fox and installed but its not opening after installation. So what should i do?

    Hi, tiger's iphone.  
    Thank you for visiting Apple Support Communities.
    Here are the best troubleshooting resources to go through when experiencing issues updating your iOS device over-the-air.
    Turn your iOS device off and on (restart) and reset
    http://support.apple.com/kb/ht1430
    Resolve issues with an over-the-air iOS update
    http://support.apple.com/kb/TS4431
    You can also update this iPad via iTunes on a computer as an alternative.
    Update your device using iTunes
    If you can’t update wirelessly, or if you want to update with iTunes, follow these steps:
    If you use your device's Personal Hotspot for your computer's Internet connection, update your device wirelessly or connect your computer to another network.
    Install the latest version of iTunes on your computer.
    Plug in your device to your computer.
    In iTunes, select your device.
    In the Summary pane, click Check for Update.
    Click Download and Update.
    If you see an error message while updating your device, you can learn how to resolve iOS update errors in iTunes.
    Update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    Cheers,
    Jason H.

  • Have you experience a problem about losing your internet after downloading itunes? How to fix it?

    Have you experience a problem about losing your internet after downloading itunes? How to fix it?

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
    Try the following to rule out a software problem
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself

  • I am trying to download photos to mac from iphone 4s and keep getting message (unreadable files:315) which I say (OK).  Then it throws me out of downloading.  What can I do to get my photos downloaded to Mac?

    Trying to download photos from iphone 4S to a MacBook Pro.  The process keeps getting interrupted/stopped with a notice (unreadable files:315).  When I click (OK), thinking it will download all other photos other than the 315, it stops downloading.  I did this thru Image Capture and also Import Photos in iPhotos.  Both did not work.  What can I do?

    Try:
    - Try another cable.
    - Try another USB port
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    If still problem then it appears the photo files on the iPod are corrupted or you have a hardware problem with the iPod

  • How to get lightroom3 to download raw files from Canon 70D even though I have downloaded DNG 8.5

    I have a Canon 70D and my old lightroom3 will not download raw files even though I have downloaded DNG 8.5 on my iMac. how can I overcome this problem?

    theovanderveen wrote:
    I was being lazy and hoping that Adobe might have created some sort of patch which would allow me to import directly from my camera to lightroom
    Neither Adobe, nor any other company that produces a Raw converter, ever retrospectively adds new camera support to old (obsolete) versions of their software.

  • When i download a file from the web i get "Anti-Virus Program not found " message. This has been happening since I change anti-virus programs for CA etrust to Sophos. How do I get Firefox to recognise my new Anti-virus program?

    every time i download a file from the web (ie. a PDF file) i get "Anti-Virus Program not found " message. This has been happening since I changed anti-virus programs for CA etrust to Sophos. How do I get Firefox to recognise my new Anti-virus program?

    That is a very good warning provided by the Download Statusbar extension. Something like that should been built into Firefox. I filed this Bug report a couple of years ago, about the lack of a warning like that. <br />
    https://bugzilla.mozilla.org/show_bug.cgi?id=480855 <br />
    I have looked everywhere that I can think of to find a list of '''IOfficeAntiVirus providers''' ''(as mentioned in the Bug report)'' that will work with Firefox, so I can't answer that for you.
    You might want to ask the developer of the Download Statusbar extension about it. He might know which AV programs are compatible with the Windows API that Firefox uses for the download scan. <br />
    http://dlstatusbar.proboards.com/index.cgi? <br />

  • Download to file (.xls) problem

    I am running my application in 2004s Environment. It is throwing ClassCastException with the below code. Class IWDModifiableBinaryType is deprecated. Is there any way i can get the same functionality.
    IWDAttributeInfo mAttInfo =
              wdContext.getNodeInfo().getAttribute("DataSource");
    IWDModifiableBinaryType mBinaryType =
         (IWDModifiableBinaryType) mAttInfo.getModifiableSimpleType();
    Is there any ready to use functionality for this. Your answers are highly appreciated.
    Regards,
    Learner
    Message was edited by:
            SAP Learner

    Hi Learner!
    What functionality do you need?
    If you want to save a dynpro table to Excel file, look this blog:
    /people/bertram.ganz/blog/2007/05/25/new-web-dynpro-java-tutorials--uploading-and-downloading-files-in-sap-netweaver-70
    If you want to download Excel file from your database, see this thread, especially last post:
    How to store files in database and get it from DB with WD application?
    Hope it helps.
    Regards, Lev

  • Cannot preview filetype please download the file for viewing and garbled text on a downloaded image

    Dear Madam or Sir,
    When I click on a file titled "Subject Access Request Letter re Account Number 12527629 Sort Code 60-10-34 24022015.pdf", which is stored in my Account on Acrobat.com I get the response "Cannot preview filetype please download the file for viewing". This file was created from an OpenOffice .odt document of the same title. Please advise.
    I downloaded an image, which purports to be a .pdf, from the Royal Mail Track & Trace web facility using my Samsung S5. The text that I expect to see might as well be hieroglyphics for all its similarity to text. Please advise.
    Regards,
    Ron Platt
    PS I have tried to attach both files (.pdf) but am advised "That image type is forbidden". Please advise.

    Hi Laura,
    I have found the solution to be:
       1. Not to upload to "Document Cloud" from the .pdf stored on my PC and
       open on screen.
       2. To login to Acrobat.com from the .pdf stored on my PC and open on
       screen, select "Document Cloud" and the sub-folder required and then upload
       the file
    I have a feeling that there is a glitch somewhere, because after I have
    opened a number of .pdf files stored on my PC, and irrespective of whether
    I have closed them prior to opening the next .pdf file or left them open,
    Acrobat Reader will display (Not responding) in the window title bar. The
    "number of files" equates to less than 10. I, then, click on the X at the
    right of the window title bar and I am given the option of "Close the
    program" or "Wait until the program responds" (or words to that effect). If
    i choose the latter, nothing happens and I am back at the unhappy status
    quo. If I choose the former, I am told that Windows is searching for a
    solution, which it never finds. I, then, have to shut down the PC and then
    start it up, again. Clicking "Restart" does not solve the problem.
    I have described the above before and received the usual "it cannot be
    Acrobat, it is perfect" response. I could, I suppose, screenshot/snip every
    sequential screen but why should I have to when I have described the
    sequence as fully as I can. So I have found a "workaround" that does not
    solve the "Not responding" problem but does solve the problem of not being
    able to upload from the open .pdf file to the sub-folder in "Document
    Cloud". I am, on occasion, working through the myriad of .pdf files that
    are in the root folder of "Document Cloud" and putting them in the correct
    sub-folder(s).
    I have today read that Google is starting a cellphone service in the USA in
    which a monthly "access" rental (US$20) is paid plus a GB capacity usage is
    elected for at a rate specified, e.g. US$10.00/GB. If the subscriber  does
    not use the elected GB capacity Google refunds the US$value of the unused
    elected GB capacity.
    Suggestion: Adobe applies that kind of policy to its online software
    package usage rates, e.g. I elect to subscribe to a particular level of
    online software package usage monthly, but, if I do not use all of the
    programs included in that online software usage package, I am credited back
    for not having used the softwares, that I did not use, that were inclusive
    in that online software package offer.
    Regards,
    Ron

  • I can not download any files, i think i by misstake put the download manager in the trash and then deleted it, what should i do? I am not so shore what the program is called in English( in Swedish:filhämtare) but it looks like a little grey box

    Hi, i really need help... I think i by accident deleted the "download manager" i´m not shore what the program is called in English ( Swedish : filhämtaren), but its symbol looks like a grey little box and when you download a file it appears on a list and is then saved in this program. I don`t know how i didn´t see it in the trash, but somehow i deleted this program by mistake. And as a consequence i can no longer open/download any files. I just got my macbook pro and i do love the system but i am now unsure about what i should do with this problem since i am not that terribly good with computers.... Is there any way you can fix this?

    soffi h wrote:
    Hi, i really need help... I think i by accident deleted the "download manager" i´m not shore what the program is called in English ( Swedish : filhämtaren), but its symbol looks like a grey little box
    If it looks like this:
    It's called an "installer.app"
    You can custom install the "installer.app" directly from your System DVD that originally came w/your computer.  It will be either inside the "Bundled Software" folder or inside the "Applications" folder.

  • Problems connecting to itunes store after downloading itunes 7

    is anyone else still having problems accessing the itunes store after upgrading to itunes 7? i literally downloaded itunes 7 tonight and immediately started having problems accessing the store. definitely wish i had not clicked "yes" to upgrade. DOES ANYONE KNOW HOW TO FIX THIS? seems that there have problems w/itunes 7 for about a month now. feel like a sucker for not having known until now. help!!

    is anyone else still having problems accessing the
    itunes store after upgrading to itunes 7? i
    literally downloaded itunes 7 tonight and immediately
    started having problems accessing the store.
    definitely wish i had not clicked "yes" to upgrade.
    DOES ANYONE KNOW HOW TO FIX THIS? seems that there
    have problems w/itunes 7 for about a month now. feel
    like a sucker for not having known until now. help!!
    Me too. I'm runing 10.4.8 on a PPC G4 1.2 mhz 1.5 gig & it's all hiccuppy and stuff.

  • Problems installing apt firefox android after downloading

    after downloading i get following message: unknown mistake during installing app '-24'
    Anyone an idea ?
    Thanks
    Use android 4.2

    We don't have any control over the way Google Play installs updates. This normally means that Google had some sort of issue sending the updated Firefox to you. Google keeps a list of known issues at https://support.google.com/googleplay/known-issues/1319135?hl=en

Maybe you are looking for

  • Songs on my Ipod ALL gone...

    I have an Ipod Nano, I use it everyday..listening to it...putting new songs on in it...all that, I love it, it worked great. Until.. Yesterday. I added a large amount of songs to my Itunes library that I wanted to put on my ipod, but I assumed I woul

  • Can't attach an image an email after updating to OS4

    I have an iPhone 3G. I recently updated to OS4. Everything works great except that I can't attach a image/picture to an email. When I try to do so, it places a blue box (with a question mark) in my email. However, if i take a picture (or use a pictur

  • Workstations not showing up on devices

    We just deployed 15 new work stations on our network and under the devices only 50 work stations show up, the new 15 work stations do not. I checked the computers and in the show properties everything looks right. I even unregistered and reregistered

  • Cluster table RFBLG

    I have come accross cluster table RFBLG. How it is used. I can see that it is a cluster of multiple tables i.e. BSEG. and how does it improve the performance of the ABAP report. Thanks in advance. Faiq

  • How do I download Photoshop again when Creative Cloud thinks I already have it?

    I attempted to download Photoshop but encountered an error. However, Creative Cloud recorded me as succesfully downloading the software and will not allow me to download again.  I have tried to delete the Photoshop directory without success and canno