Cannot transfer file into DB from client with webutil

Transfering file from client to DB will fail if the file is at a network path(not be mapped) or path contains Chinese character. for instance:
\\server\temp\test.bmp
C:\(Chinese character)\test.bmp
But it can work fine with the file list below ( I map \\server\temp to T: ) :
C:\test.bmp
T:\test.bmp
Thanks for any reply!

I've got a similar problem related to this issue. Using the Client_Get_File_Name function to return a UNC path name and file the value returned drops the first backslash so instead of:
\\server\directory\file.bmp
I get:
\server\directory\file.bmp
Similar to Sunny, we don't want users to have to copy files to their local drives in order to load them into the database. We use Client_Get_File_Name to identify the file the user wants to load and then we use Read_Image_File to load it. Its passing the incorrect value into Read_Image_File that is causing our problem.
Is there a workaround for this, can we stop Client_Get_File_Name from losing the first backslash?
Thanks
Richard

Similar Messages

  • How can i load file into database from client-side to server-side

    i want to upload file from client-side to server-side, i use the following code to load blob into database.
    if the file is in the server-side, it can work, but if it in the client-side, it said that the system cannot find the file. i think it only will search the file is in the server-side or not, it will not search the client-side.
    how can i solve it without upload the file to the server first, then load it into database??
    try
    ResultSet rset = null;
    PreparedStatement pstmt =
    conn.prepareStatement ("insert into docs values (? , EMPTY_BLOB())");
    pstmt.setInt (1, docId);
    pstmt.execute ();
    // Open the destination blob:
    pstmt.setInt (1, docId);
    rset = pstmt.executeQuery (
    "SELECT content FROM docs WHERE id = ? FOR UPDATE");
    BLOB dest_lob = null;
    if (rset.next()) {
    dest_lob = ((OracleResultSet)rset).getBLOB (1);
    // Declare a file handler for the input file
    File binaryFile = new File (fileName);
    FileInputStream istream = new FileInputStream (binaryFile);
    // Create an OutputStram object to write the BLOB as a stream
    OutputStream ostream = dest_lob.getBinaryOutputStream();
    // Create a tempory buffer
    byte[] buffer = new byte[1024];
    int length = 0;
    // Use the read() method to read the file to the byte
    // array buffer, then use the write() method to write it to
    // the BLOB.
    while ((length = istream.read(buffer)) != -1)
    ostream.write(buffer, 0, length);
    pstmt.close();
    // Close all streams and file handles:
    istream.close();
    ostream.flush();
    ostream.close();
    //dest_lob.close();
    // Commit the transaction:
    conn.commit();
    conn.close();
    } catch (SQLException e) {

    Hi,
    Without some more details of the configuration, its difficult to know
    what's happening here. For example, what do you mean by client side
    and server side, and where are you running the upload Java application?
    If you always run the application on the database server system, but can't
    open the file on a different machine, then it sounds like a file protection
    problem that isn't really connected with the database at all. That is to
    say, if the new FileInputStream (binaryFile) statement fails, then its not
    really a database problem, but a file protection issue. On the other hand,
    I can't explain what's happening if you run the program on the same machine
    as the document file (client machine), but you can't write the data to the
    server, assuming the JDBC connection string is set correctly to connect to
    the appropriate database server.
    If you can provide some more information, we'll try to help.
    Simon
    null

  • Cannot transfer files to and from WebDav server

    I having much difficulty transferring files to and from our new WebDav server when using Finder's Connect to Server. I am able to connect and authenticate just fine. Although, when dragging and dropping to a mounted drive, I receive the following errors, then subsequently dropped from the sever.
    ...Unexpected Error Occurred - Error code 1407
    ...cannot comple the operation because some data in "" could not be read or written - Error code 36
    ...Unexpected Error Occurred - Error code 1407
    This seems to be an issue affecting all 10.5 users in our university. PC's and 10.4 do not seem to be having this issue. When using CyberDuck and Goliath, I cannot login to the server whatsoever.
    Any thoughts?

    Same problem here with the finder.
    But Cyberduck (ver. 3.2, build 4648) works fine.

  • Cannot acess file on server from client machine using java web start

    Hi everyone,
    I am creating an appication using JWS and Apache Web Server version 2.0.54 on Linux. I am trying to access a file on the server that IS NOT inside the jar file. I have given full access (r, w, x) to all users on my server. We also created a FilePermission object and gave the file read and write access as well. But when we deploy the program and try to get this file, a SecurityException is thrown with the following mesage:
    acess denied (java.io.FilePermission filename read) where filename is the file in our local filesystem. Any suggestions on what I can do?
    Any help would be greatly appreciated.
    Thanks,
    Raj

    It sounds like you are trying to access the file as if your JNLP application were running on the server. The JNLP app is running on the client machine, so you will need to use a URL to open the file. Take a look at the JavaDocs for the following:
         java.net.URL
         java.net.URI
         java.net.File
    You also need to be sure your server is configured to serve the file. For example, you ought to be able to access the file through your browser using something like http://www.myco.com/myapp/myfile.txt. (How you configure your server is a topic for a different forum.)
    You probably also want to look into JavaWS security, and even Java security in general to determine if you need to sign your app or not. Here are some links to get you started:
            http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/development.html#security
            http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/security.html
            http://java.sun.com/sfaq/
            http://java.sun.com/j2se/1.5.0/docs/guide/security/permissions.html
            http://java.sun.com/j2se/1.5.0/docs/guide/security/index.html
    Mike.

  • Reading file into SAP from foreground with record length 255

    I am trying to read a text file using GUI_UPLOAD. But, some of the records are more than 255 characters in length. When I try to load them to an internal table, the rest of the characters are getting truncated. Is there any possibility of uploading all the remaining characters also? The maximum length of a record might be 400 characters.

    Hi
    try to define the field of your internal as char longer than 255 char, if u want to make sure u can use the type string:
    TYPES TY_LINE TYPE STRING.
    DATA W_LINE TYPE TY_LINE.
    DATA T_FILE TYPE TABLE OF TY_LINE.
    Max

  • I cannot transfer files from my MacBook to my external hard drive anymore.

    I cannot transfer files from my MacBook to my external hard drive anymore. The device responds with error-36 about documents being unreadable and unwritable. Previously the device worked fine.
    External Hard Drive
    I have an imation Apollo II 2.5" Portable HDD 320GB.
    163 GB available.
    Macbook
    Model Name: MacBook Finder Version 10.6.8
      Model Identifier: MacBook6,1
      Processor Name: Intel Core 2 Duo
      Processor Speed: 2.26 GHz
      Number Of Processors: 1
      Total Number Of Cores: 2
      L2 Cache: 3 MB
      Memory: 2 GB
      Bus Speed: 1.07 GHz

    It still doesn't seem to work.
    The Finder can’t complete the operation because some data in “POLITICS COMPARATIVE POLITICS IN GLOBAL WORLD” can’t be read or written.
    (Error code -36)
    The device is also formatted in Mac OS extended

  • How do I copy files onto a hard drive (device) from Mac 2 7 pc. I'm able to transfer files from device but cannot transfer files to device. Anyone had same problem or can help solve this problem? Help pls

    how do I copy files onto a hard drive (device) from Mac 2 7 pc. I'm able to transfer files from device but cannot transfer files to device. Anyone had same problem or can help solve this problem? Help pls

    Welcome to Apple Support Communities
    When you try to copy data to the external drive, what happens? If you don't see any error, the external drive is formatted in NTFS, and OS X can't write in it.
    To be able to write on this external drive, you have to use an app like Paragon NTFS. Another solution would be to format the external drive in FAT32 or exFAT with Disk Utility > http://pondini.org/OSX/DU1.html Make sure you copied all the files of the external disk to the internal disk before doing it

  • HT1918 I cannot access files I uploaded from an old computer.  The email account to which some tracks are connected is deleted. For some reason my birth date doesn't work either. Is there some way to transfer the files to my current address?

    I cannot access files I uploaded from an old computer. The email account to which some tracks are connected is deleted. For some reason my birth date doesn't work either. Is there some way to transfer the files to my current address and username?

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • TS1702 With the latestes version of itunes I cannot transfer files to my apps.  There is no "File Sharing" section.

    With the latest version of itunes I cannot transfer files to my apps.  There is no "File Sharing" section.

    Yes there is.
    Connect the iPad to your computer. Launch iTunes and at the menu at the top of the screen, go to View>Show Sidebar. After you have the sidebar, click on your iPad name like you did in the past. Click on the Apps tab in the window on the right. Scroll down to File Sharing apps.

  • When importing files into fcpx from go pro hero2, some are importing as .mov and some as .mp4. when making a multi cam clip it will only add one type, if you try and add the other it says camera clip cannot be processed.

    when importing files into fcpx from go pro hero2, some are importing as .mov and some as .mp4. when making a multi cam clip it will only add one type, if you try and add the other it says camera clip cannot be processed. need to figure out why it randomly imports differently, or how to add different file tyoes to multi cam.

    here is one that is imported and stays .mp4. the specs are same as original file before import.
    here is one that has changed somehow during import. specs on original file are same as above, but once it is imported it changes to this in event folder, and others randomly keep the above specs.

  • How can i stop the Action Wizard from putting the original file into the Source folder with my changed documents?

    How can i stop the Action Wizard from putting the original file into the Source folder with my changed documents?

    [discussion moved to Creating, Editing & Exporting PDFs forum]

  • I need to transfer files applications etc from a Mac Book Pro to a Mac Book, but I want certain files/applicaitons to be available only under certain users. DO I transfer everything first then move it into different accounts or can I set up accounts first

    I need to transfer files applications etc from a Mac Book Pro to a Mac Book, but I want certain files/applicaitons to be available only to certain users. DO I transfer everything first then move it into different accounts or can I set up the different user accounts first & select what goes where when I migrate?
    Thx

    Do you have a backup that you can restore from? Your old hard drive seems to be the problem.

  • Have new MacBook Air and old MacBook. Can send file from Air to MacBook by Bluetooth but cannot transfer file from MacBook to Air.

    Have new MacBook Air and old MacBook (2 1/2 years old). Can transfer files from Air to MacBook by Bluetooth but cannot transfer file from MacBook to Air. When I try, MacBook does not recognize Air. File transfer only goes in one direction. Any solution to this problem? Regards

    The Setup Assistant can restore your data from a Time Machine backup. You'll be asked if you want to do this the first time you turn the computer on.
    (60797)

  • I can't transfer music and other files from library to my iphone 4 by dragging it.can anyone help me?is there any other way to transfer files into iphone?

    i can't transfer music and other files from library to my iphone 4 by dragging it.can anyone help me?is there any other way to transfer files into iphone?

    If you want to drag and drop ( don;t know why you would do this), you will have to check manually manage music.
    Why not just sync?
    iPhone User Guide (For iOS 5.0 Software)

  • My iphone is paired with pc through bluetooth but cannot transfer files between the two. Any solution?

    My iphone 4 is paired with pc but cannot transfer files berween them. What is the solution can anybody help?

    Transfer files using iTunes.
    You can only use BT between iPhone & PC for an interent connection to the PC.

Maybe you are looking for

  • My Mac is running very Slow

    Hello Everyone, for the past couple of months my mac has been preforming slower to the point where it takes me ten minutes to type in my password to log in what puzzles me is that I use less than 1/5 of my hard-rive and I only use 2-3 application at

  • How to create a new tab in CRMD_ORDER for custom fields

    Hi Expert, I have added custom fields in crmd_customer_ i through EEWB . Now i want to display the fields in a new tab in CRMD_ORDER. can you please guide me how to create a new Tab step by step procedure. Thanks & Regards, Avi

  • So what do we do when Windows 7 comes out?

    I mean regarding the One Key Partition on our system.  If we put Windows 7 on our systems, do you think Lenovo will work on some updates to the One Key to make Windows 7 take advantage of it?

  • Can't have my number authenticated for 2 clients a...

    I have a Win install and a Mac install on different computers (same country) Why when I authenticate one client and my texts are displayed with my mobile number as a sender fine, I find the other client has lost this setting and I have to authenticat

  • No entry in table T503

    Hi experts! Iu2018ve created groups and areas of personnel and assigned employee subgroup to employee group by IMG: Enterprise structure -> Assignment -> Human Resources Management-> Assign employee subgroup to employee group.   Iu2019ve tried to hir