BLOB unicode file name problem

Hi,
       I am trying to upload pdf file into SecureLOB column, I am getting error when I try to upload file name/directory  with unicode char, for other files/directory it works fine.
w_src_loc := bfilename('LDIR', in_file_name);
  dbms_lob.open(w_src_loc, dbms_lob.lob_readonly);
dbms_lob.open gives file not found error in oracle 11g,
Can any one guide me what may be the problem?
DB's character set:
NLS_CHARACTERSET
AL32UTF8
NLS_NCHAR_CHARACTERSET
AL16UTF16
P.S. Oracle is running in Windows and unicode (chinese) enabled OS.
-Raj

> I am getting error when I try to upload file name/directory  with unicode char,
ERROR? What Error?
I do not see any error.
my car won't go
tell me how to make my car go.
How do I ask a question on the forums?
https://forums.oracle.com/message/9362002#9362002

Similar Messages

  • Problem with compressing unicode file names in zip file

    Hi Everyone,
    I have a problem while compressing the unicode file name in a zip file. I used the below code for compressing the unicode files.
    String[] source = null;
    // C:\\TestData\\unicode_filename.txt :  unicode_filename.txt is the file created in japanesse language
    source = new String[] {"C:\\TestData\\temp_properties.xml","C:\\TestData\\unicode_filename.txt" };
    byte[] buf = new byte[1024];
    // Create the ZIP file
    String target = "C:\\TestData\\target.zip";
    ZipOutputStream out = new ZipOutputStream(new FileOutputStream(target));
    // Compress the files
    for (int i = 0; i < source.length; i++)
         FileInputStream in = new FileInputStream(source);
         // Add ZIP entry to output stream.
         String fileName;
         File tempFile;
         ZipEntry zipEntry = new ZipEntry(source[i]);
         fileName = zipEntry.getName();
    zipEntry = new ZipEntry(fileName);
    zipEntry.setMethod(ZipEntry.DEFLATED);
    getUTF8Bytes(source[i]);
    // here I'm unable to find the unicode files and not able to understand.
    out.putNextEntry(zipEntry);
    // Transfer bytes from the file to the ZIP file
    int len;
    while ((len = in.read(buf)) > 0) {
    out.write(buf, 0, len);
    // Complete the entry
    out.closeEntry();
    in.close();
    // Complete the ZIP file
    out.close();Please help me how to fix this issue.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    Thanks for your time for looking into my query.
    Please check the below code for debugging the issue and throw your comments/suggestions for fixing the issue.
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    public class ZipTest
      public static void main(String[] args) {
              String[] source = new String[] {"C:\\TestData\\APP_Properties.xml","C:\\TestData\\??.txt" };
              byte[] buf = new byte[1024];
              try {
                   // Create the ZIP file
                   String target = "C:\\TestData\\target.zip";
                   ZipOutputStream out = new ZipOutputStream(new FileOutputStream(target));
                   // Compress the files
                   for (int i = 0; i < source.length; i++) {
                        FileInputStream in = new FileInputStream(source);
                        // Add ZIP entry to output stream.
                        String fileName;
                        File tempFile;
                        ZipEntry zipEntry = new ZipEntry(source[i]);
                        fileName = zipEntry.getName();
                        zipEntry = new ZipEntry(fileName);
                        zipEntry.setMethod(ZipEntry.DEFLATED);
                        getUTF8Bytes(source[i]);
                        out.putNextEntry(zipEntry);
                        // Transfer bytes from the file to the ZIP file
                        int len;
                        while ((len = in.read(buf)) > 0) {
                             out.write(buf, 0, len);
                        // Complete the entry
                        out.closeEntry();
                        in.close();
                   // Complete the ZIP file
                   out.close();
              } catch (IOException e) {
                   e.printStackTrace();
         private static byte[] getUTF8Bytes(String s) {
              char[] c = s.toCharArray();
              FileOutputStream file;
              try {
                   file = new FileOutputStream("C:\\TestData\\output.txt", true);
                   int len = c.length;
                   // Count the number of encoded bytes...
                   int count = 0;
                   for (int i = 0; i < len; i++) {
                        int ch = c[i];
                        if (ch <= 0x7f) {
                             count++;
                        } else if (ch <= 0x7ff) {
                             count += 2;
                        } else {
                             count += 3;
                   // Now return the encoded bytes...
                   byte[] b = new byte[count];
                   int off = 0;
                   for (int i = 0; i < len; i++) {
                        int ch = c[i];
                        if (ch <= 0x7f) {
                             b[off++] = (byte) ch;
                             file.write((byte) ch);
                        } else if (ch <= 0x7ff) {
                             b[off++] = (byte) ((ch >> 6) | 0xc0);
                             file.write((byte) ((ch >> 6) | 0xc0));
                             b[off++] = (byte) ((ch & 0x3f) | 0x80);
                             file.write((byte) ((ch & 0x3f) | 0x80));
                        } else {
                             b[off++] = (byte) ((ch >> 12) | 0xe0);
                             file.write((byte) ((ch >> 12) | 0xe0));
                             b[off++] = (byte) (((ch >> 6) & 0x3f) | 0x80);
                             file.write((byte) (((ch >> 6) & 0x3f) | 0x80));
                             b[off++] = (byte) ((ch & 0x3f) | 0x80);
                             file.write((byte) ((ch & 0x3f) | 0x80));
                   file.write((byte) '\n');
                   file.write((byte) '\r');
                   file.flush();
                   file.close();
                   return b;
              } catch (FileNotFoundException e1) {
                   e1.printStackTrace();
              } catch (IOException e1) {
                   e1.printStackTrace();
              return null;
    }Thanks
    Aravind                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "Lower© ";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = " ";
    // Set font size in Points
    myTextRef.size = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

  • Downloading a File with a Unicode File-name

    hello!
    I have a program under Tomcat
    this program has a JSP file with Links on different files
    that can be downloaded by the user
    on click to a certain link, a pop-up for save-as dialog will appear.
    the unicode file-name appears correctly on the save-as dialog box
    the save-as dialog box contains buttons such as
    Open, Save and Cancel
    the result is:
    Dialog-Display FileName- OK
    Open - NG
    Save - OK
    im using IE 6 sp1
    heres my code on the force-download
         response.setContentType("application/octct-stream;charset=UTF-8");
            response.setContentType("application/force-download");
         response.setHeader("Content-Disposition", "attachment;filename="
                    + downloadFileName  );

    already solved....................

  • Duplicate File Name error for Unicode file names

    I am trying to rip my music collection from CDs to iTunes. I have decided to use my local language (Bangla/Bengali) as Track/Artist names using Unicode. I can edit the CD Info perfectly. The problem started when I try to import the tracks to iTunes as AAC/mp3. The first track is always imported ok but subsequent tracks fails to be imported. iTunes gave an error message saying the file name already exists where as it was not.
    Please help.

    I reported this to Adobe customer support on 11/29, and here is their response:
    Wednesday, December 5, 2007 12:51:27 PM PST
    Hello John,
    Thank you for contacting Adobe® Web Support for assistance with Adobe
    Photoshop Elements® 6.0.
    I understand that images are deleted if you accidentally try to move
    them to a folder that already includes a file of the same name.
    Thank you for bringing this to our attention. I was able to replicate
    this behavior as well. The best method to report errors of this nature
    is using the following form on our website:
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    I will report this to the product team through my channels. You may want to submit this issue through the web form as it goes directly to the product development team.
    I hope this information helps to resolve your issue. If you require
    further assistance with this issue, please update your web case with
    complete details, including what steps you have applied and any error
    messages you are receiving.
    You may also call Technical Support at (800) 642-3623. We are available from 6:00 am to 5:00 pm Monday - Friday, Pacific Time.
    Kind regards,
    Alan C.
    Adobe Web Support

  • Max 255 characters in MS Office file name problem

    When saving files via WebDAV to KM folders within collaboration rooms we often hit this limit of 255 characters that Office documents allow for file names (218 for MS Excel).
    Because the complete webDAV URL to portal is made up of server name + a lot of portal stuff, the number of characters left for subcatalogs and document within each room is very limited.
    Has anyone got a good solution to this problem?
    WebDAV url example:
    oslpep.agra.int:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/room_extensions/
    cm_stores/documents/workspaces/303c5e8a-cb16-2810-9aa7-caaf71de197/subfolder/document.doc
    Error message in Excel when saving:
    "The file could not be accessed. Try one of the following:
    - Make sure the specified folder exists.
    - Make sure the folder that contains the file is not read-only.
    - Make sure the file name does not contain any of the following characters: < > ? [ ] : | *.
    - Make sure the file/path name doesn't contain more than 218 characters."

    Julian, Robert
    Thanks for help so far. I have now upgraded to SP2 and the situation is the same.
    As far as I see the Cumulative security update is specified to solve IE-related problems. The problem with WebDAV editing of files in portal does as such not involve opening Office documents through IE, but rather editing these in any Office program and saving directly to portal through a mapped network place (a KM folder).
    I still cannot see that Microsoft has published anything about a fix for this problem.
    About error when opening document: http://support.microsoft.com/default.aspx?scid=kb;en-us;325573
    About error when saving document: http://support.microsoft.com/default.aspx?scid=kb;en-us;213983
    Is there something I have overlooked?
    Regards
    Henning

  • Original file name problem

    Hi all,
    Got this wierd problem with DMS.
    I am opening (in change mode) an excel document stored in our DMS for editting, then I check it back in again. When I check it back in again and save, the orignal file name is getting the temp folder name appended to it!
    In CV02n I have setup a Temp working directory for files, e.g. N:\Mydocs. Lets say my document is called "Requirements.xlsx" , everytime I open the document, make some changes and check it back in again SAP is adding the temp directory name to the original file name... after 3 or 4 check out/ins the file name is now "MydocsMydocsMydocsMydocsRequirements.xlsx"!!!
    How do I stop SAP appending the folder name to the original file name?

    Doh!
    I've just figured out my own problem.
    The temp working directory setup in CV02n did not have a "\" on the end of the path... so SAP thinks it's a name not a location.
    changing the Temp working directory to N:\Mydocs\ solved the problem.

  • Path and file name problem when I want to download files from html

    Hi all,
    I want to write a small program to allow users download files from jsp file
    but the following files don't work .
    <%@ page language="java" import="java.net.*,java.io.*"%>
    <%@ page import ="java.util.*"%>
    <%
    try
    String SContent = request.getParameter("click");
    String SDocName = "temp.doc"; //  out put file File Name
    ServletOutputStream stream= response.getOutputStream(); // Getting ServletOutputStream
    response.setContentType("application/msword"); // Setting content type
    response.setHeader("Content-disposition","attachment;filename=\"" +SDocName+"\""); // To pop dialog box
    BufferedInputStream in = new BufferedInputStream(new FileInputStream(SContent));
    int c;
    while ((c = in.read()) != -1){
               stream.write(c);
    in.close();
    stream.flush();
    catch(final IOException e)
    System.out.println ( "IOException." );
    catch(Exception e1)
    System.out.println ( "Exception." );
    %>I am so confuse, what is the path and file name I sould give ? for example my click should equal to http://******/Test/display.jsp?click=00-1

    Hi all,
    I got error at
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
         org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:599)
    if I want ot download file from html file.
    String SContent = request.getParameter("click");
    if I hard code like follow it work fine.
    String SContent ="C:/Project Coding.doc";
    what mistake I make.
    Thank you!

  • Acrobat 7.1 OS: XP PRINT TO PDF file name problems

    Here is all the info.
    when i goto file print and select Adobe pdf as the printer.
    The window shows up titled: Save PDF File AS
    The current "Save in" window is Desktop / My Documents / CATALOG /     CATALOG PDF VERSION / PDF PORTFOLIO VERSION
    The preloaded "File name" is: C:\Documents and Settings\Chip\My     Documents\2009 - A PO\09 - AH - Ellouise Abbott, Houston\09 - AD -     5846, Lloyd, IBB, j-227\INDEX-glass,mica,linen.pdf
    The preloaded "Save as type" is: PDF files (*.PDF)
    I am sending out this pdf to a lot of customers  and I do not want them to see the preloaded information for file name.   Is this only happening because it is on my computer.  OR when i send the  same pdf to a different customer will they see the preloaded file name   "C:\Documents and Settings\Chip\My     Documents\2009 - A PO\09 - AH - Ellouise Abbott, Houston\09 - AD -     5846, Lloyd, IBB, j-227\INDEX-glass,mica,linen.pdf"
    Below is a screenshot to give you a better idea:
    Message was edited by: axlrose13

    this question is for a different machine running acrobat 9 on xp.  its a completly different question regarding the file names if they will show up on another persons computer if we send them the pdf file.

  • "Invalid output file name" problem

    Hi
    I have installed FMLE in a Windows Vista Home Premium SP2 x64 machine. When I run the GUI version with any preset (using Medium bandwidth 300kbps VP6) and selecting "Save to file" "C:\temp\sample.flv" I get this error:
    Invalid output file name
    Filename cannot be invalid and absolute path of the file cannot exceed 255 characters.
    The folder C:\temp DOES exist. I am running from my administrator (only) account. FMLE works just fine in my Mac but for some reason I need to set up a Windows machine.
    What can be wrong?
    Thanks

    Both. I did the same thing I did in my Mac (in the Mac it works, in Windows it does not work):
    1) open the GUI
    2) set up the options I want (e.g. save to file X in folder Y)
    3) save options as an XML profile
    4) use the saved profile in the /p parameter of the command line
    That did not work. So I just went into the GUI and:
    1) set up the options I want (e.g. save to file X in folder Y)
    2) Click START
    That did not work either. I get the "invalid output file name" in both situations. And my file is name "sample.flv". I even tried without specifying a drive (e.g. "sample.flv" instead of "c:\folder\sample.flv"). The folder has no invalid characters and does exist.

  • Script file name problem

    hi,
    when i try to run script in a file i got an error.
    i tried following command.
    @D:\Database Architecture\Scripts\test.sql
    It throw error as D:\Database.sql file not found.
    I'm facing this problem when i use Edit command and SQLPlus utility.
    how to solve this problem?
    I want to run files which are stored in directories whose names are containing embedded spaces.
    Thanks.

    You have to enclose the string in double quotes.
    Example:
    SQL> @c:joelperez/hi bye/joel.sql
    SP2-0310: unable to open file "c:joelperez/hi.sql"
    SQL>
    SQL> @"c:joelperez/hi bye/joel.sql"
    SYSDATE
    17/02/04
    SQL>
    Joel Pérez
    http://otn.oracle.com/experts

  • UPPER and lower case file names problem on CD

    Hello,
    I have a CD which contains, in web page format, the contents of a bibliographical work formerly published on paper. The link codes in all these web pages use lower case filenames. Unfortunately, the files on the disk are a mix with some of them in uppercase, i.e. AD4.HTM and some in lower case, i.e. intro.htm.
    This disk used to work, under OS 9 in Internet Explorer. But now, under OS X 10.4.11 and using either Safari or Firefox, I'm getting Page Not Found errors whenever the filename is uppercase.
    I could copy all the files off the CD to my hard drive and run a renamer utility to change all of them to lower case. But I have another CD from the same publisher -- same problem -- and may get more, and I don't particularly want all those files on my drive anyway. There's a lot of them!
    Is there any kind of setting -- perhaps accessible through one of those arcane terminal commands for setting hidden preferences -- which would allow me to tell the Finder (or maybe Safari or Firefox) to not care about the case of the filenames?
    Note that I can change the case of a local HTML file and either browser can still find it. This is only happening on the CD.
    TIA
    Rob

    I don't think I'll try that one. The most recent update of SheepShaver was slightly over 2 years ago, which indicates to me that the developer is busy doing other things.
    I'm very conservative in what I'll install into my system, and old, one-developer software does not fit my standards.
    If no other answer comes up, I think I'll copy the files to my hard drive, rename them, then write out a CD with the renamed files and use that one instead. Of course the original CD may contain copy protection features which will prevent this -- I haven't tried it yet.
    Message was edited by: Rob Stevenson

  • Save as PDF - default file name problem

    When I try to Save as PDF from the print dialog box (in Mail, Safari, iWork, etc.) the filename and title both default to:
    286>756<6<29
    Does anyone have any ideas why the fields are not being populated with the correct information?

    Then, you might have a mucked up font database. Reboot into safe mode and then reboot normally. That will clear those databases. Note, however, it'll will also clear any font collections you've made with Font Book. Once that's done, launch Font Book, select all fonts, and validate them, resolving all duplicates. If this doesn't fix the problem, then I have nothing else to offer.

  • Unicode file and path names...

    How does SleepyCat handle Unicode file names and directory paths?
    Are there any coding examples?
    Thanks

    We have support for Unicode using UTF-8 encodings.
    What platform(s) do your applications need to run on? Would Windows support for UTF-8 be sufficient?
    Related information:
    DB_ENV->open: http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/env_open.html
    DB->open: http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/db_open.html
    "When using a Unicode build on Windows (the default), the db_home argument will be interpreted as a UTF-8 string, which is equivalent to ASCII for Latin characters."
    "When using a Unicode build on Windows (the default), the file argument will be interpreted as a UTF-8 string, which is equivalent to ASCII for Latin characters."
    Bogdan Coman

  • File Names in iPhoto 6

    Filenames in iPhoto
    If I want to use iPhoto to import pictures from my digital camera, I can chose file names with sequential numbering. If I do not want to do this from the beginning I can batch rename the files afterwards.
    My question now is: How can I get iPhoto to actually rename the picture data stored in the folder "originals".
    The Background of my question is: If I want to upload pictures to oder reprints via the web, it is hard for me to find pictures that are named DSC0003.... and so on. Or is there a way I can use different services from the Kodak online print order system implemented in iPhoto?
    I hope soemone has got an idea. Thank you so far!
    Macbook   Mac OS X (10.4.7)  

    As JMEH pointed out you have to either import and then do an export after renaming in iPhoto. I manually upload to a folder on the Desktop and then use R-Name to batch, sequentially rename the files before importing. I also date and name the folder so the roll title will have the date and brief description of the contents. A couple of extra steps but you will avoid duplicate file name problems later on and be able to more easily identify files. One naming scheme is to use the date followed by the identifier like: YYYYMMDD-title-01.jpg, etc. That would translate to 200608008-my pictures-01.jpt. This will allow very good chronological sorting and searching. Works for me. Do you Twango?

Maybe you are looking for

  • Not able to access ACS 5.1.0.44

                       Hi I have two ACS appliance ver 5.1.0.44. I configured with replication and it was working fine. Last month my primary was down and not able to access but able to ping. I tried and Google it in Internet I couldn't find any answer t

  • How to send a group email, always to the same group?

    I am trying to send a group message on my Mail app on all devices , iMac and ipone, I have created a group on contacts but it only gives me the names and then I would have to choose each email.  I would like to send an email to the same group of emai

  • Collect repeated entries in internal table

    Hi, I have an internal table with a field logk and prof..i have multiple entries for logk. i want to collect all multiple entries for a particular value of logk to put into error log.can u help me out. Thanks , Anand.

  • Facebook will not load on my macbook pro

    Facebook will not load on my macbook pro in any browser in any location. HELP! This has been going on for 5 months. I cannot take it anymore!

  • I am unable to select a carrier on my 5s when roaming

    Hi - I am unable to select a carrier under "settings" on my 5s. This is a problem I have had with my 4s, 5 and now 5s. I was told by my carrier that the reason was due to me using an old SIM card (32 bit) instead of the required 64 bit SIM card. I up