File Connection path problem

Hi friends,
I have developed an application which send image from client to server using http...I have used PDADemo of wtk and jsr 75 API to take image from the gallery and send it to the server.....my problem is when i open the application..its taking this path..
Application/C:/Data/Images/200709/200709A0/ and then images to be selected...
I have used follwing code to take images from the gallery of Nokia phone...
iStrm = (InputStream) Connector.openInputStream("file://localhost/" + currDirName + fileName);
ByteArrayOutputStream bStrm = new ByteArrayOutputStream();
int ch;
while ((ch = iStrm.read()) != -1)
bStrm.write(ch);
I want to acces images directly instead of using this path.....like open applicaition and access images to send it to server.... I need your suggestion to solve it......
Thanks,

No body is there to help me....
Plzzzzzzzz i need your help

Similar Messages

  • Need help solving this tricky connect paths problem!

    I need to convert a bunch of separate paths  in particular way so they create one single continuos path as shown in the attached PNG file.
    It has me stumped. Does anyone know of a way to do this via scripting?

    How often do you need to do this? I think that a script which would work properly may be more work than is worth the time.
    I'm sure something like this could be done, but the real problem would be what would the next group of lines that you run the script on look like? Would a script that works for this circumstance work properly for another shape?
    Here's some parameters to think about:
    How do you determine which line segments (or endpoints) in the document need to be connected? All points in the document, or will you be working with a selection?
    Once you determine the points (eliminating all that are already connected), how do you want them connected, and which point do you start with? Connect to the closest available point would seem what you want, but depending on how you determine which point to start with could give you different results.
    You might want to loop through all eligible points, and save the distance to every other point into an array. Then, loop through connecting the 2 closest available points until you've connected every point.

  • File Saving Path Problem

    Hi,
    i have one problem on file saving. i need to save file (say XML file) in my given path location thru BLS transaction. The server is in some other place and if i give path to BLS transaction, it need to stor ein given location. i tried it but it is working for folder which is alreay in share. is it possible to store in given any path location?
    regards
    senthil

    Senthil,
    is FTP an option for you?
    We experienced the same problem, and to avoid problems with file shares ot mount points (we are running NetWeaver on Unix), we chose to use FTP so transfer files, using the FTP action.
    Michael

  • Path problem for "Load VRML File.vi" in EXE

    Hello,
    The new integrated 3d Picture Control functionality in LabVIEW 8.20 is amazing.  It is a really easy to use implementation of OpenGL.  I've discovered one bug/issue when building VI's to an exe that includes the 3d Picture Control:
    If "Load VRML File.vi" is used, in the executable, you will encounter a LabVIEW Error 7 due to a path problem in the following vi:
    NI_3D Picture Control.lvlib:Load VRML File.vi->NI_3D Picture Control.lvlib:NI_Old 3D Toolkit.lvlib:Read WRL file.vi->NI_3D Picture Control.lvlib:NI_Old 3D Toolkit.lvlib:Initialize.vi
    The File Not Found problem will prevent the vrml file from loading.  Navigating down into the subVI's of the "Load VRML File.vi" shown above easily reveals the problem.  I've included a screenshot of the diagram of that VI.  The relative
    path resulting from the double "Strip Path" operation is not valid
    in the executable.  I'm not sure where that "definitions" file resides
    in the runtime deployment or if it's even included, so fixing the path to account for the differences in the exe vs. development environment path is not an option.   I'm also usually very hesitant to make any mods to anything in vi.lib.
    For the development environment, the "definitions" file can be found at: [LabVIEW 8.2 dir]\vi.lib\picture\3D Picture Control
    The easy fix is to include the "definitions" file in the same directory as your exe when you build.  Fortuitously, this does the trick because the first strip path gives the path to the exe and then the second strip path results in the path to the directory where the exe resides.
    Hopefully NI will fix this path reference properly in future revisions.
    Enjoy!
    Attachments:
    WRL Debug.jpg ‏77 KB

    Hi Chris,
    Thanks a lot for the feedback!  This was reported to R&D (# 47F9DJIQ) for further investigation.
    Regards,
    Justin D

  • Path problem while refering the file in tomcat

    In the jsp file i am going to update one property file which resides in the same folder using file output stream.
    it gives path problem.how can refer the path of that file

    try using getServletContext().getRealPath(java.lang.String path)..You can check out the API for more detail regarding this method.

  • File path problem

    I have looked an read through almost all the file path problem post possible and I am still having issues maybe one of you guys can help me, here are my files
    I am doing this as an example so that I can apply it to all of my file problems....
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    pathexample.zip ‏122 KB

    First of all, to troubleshoot the problem it would help to put some filepath indicators at each point so that you can see what is going on. Also, in your exe having an error dialog "Simple Error Handler.vi" to let you know what LabVIEW didn't like in the exe.
    Now, when you run a top level ("Main.vi") and use the "Current VI's Path " in the development mode it returns <Filepath>\"Current path"\Main.vi. So stripping once will get you to  <Filepath>\"Current path" .    Now if you make it into an exe the "Current VI's Path" returns <Filepath>\"Current path"\"Name.exe"\Main.vi so you are "nested" one deeper.
    I use the following construct to determine whether the vi is being used as in the development environment or as an exe, the parse the path accordingly, although in this instance it is used to supply different directory names to a little more complex file system.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Help File Path Problem

    Hi,
    I recently upgraded to a new computer and I have Develope toolbox and some other extensions from Web Assist and curiously when I click on HELP button in any of them I receive in error message like the one below.....virtually all of the error messages are the same. I known that it is a path problem, but when I follow the path indicated in the error message I find the file exactly where it should be on the computer.....hmmmm...any ideas out there?
    Firefox can't find the file at /MacHD/Users/jimelander/Library/Application Support/Adobe/Dreamweaver 9/Configuration/Shared/DeveloperToolbox/classes/temp.htm

    I think un install ADDT then reinstall it..
    Hope this helps
    Mohnkhan
    http://www.mohitech.com

  • Help Files Path Problem

    Hi,
    I recently upgraded to a new computer and I have Develope
    toolbox and some other extensions from Web Assist and curiously
    when I click on HELP button in any of them I receive in error
    message like the one below.....virtually all of the error messages
    are the same. I known that it is a path problem, but when I follow
    the path indicated in the error message I find the file exactly
    where it should be on the computer.....hmmmm...any ideas out there?
    Firefox can't find the file at
    /MacHD/Users/jimelander/Library/Application
    Support/Adobe/Dreamweaver
    9/Configuration/Shared/DeveloperToolbox/classes/temp.htm

    OleLena wrote:
    > Firefox can't find the file at
    /MacHD/Users/jimelander/Library/Application
    > Support/Adobe/Dreamweaver
    > 9/Configuration/Shared/DeveloperToolbox/classes/temp.htm
    I'd check to ensure that you have the latest versions of the
    WebAssist extensions as this may have been fixed. I seem to recall
    seeing this issue when the primary browser (from Dreamweaver's
    perspective, the one that F12 or preview in browser opens up) is
    not open when the help is accessed. Try having your browser open
    and then access the help.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • File connection problem + NetBeans

    Hi all,
    I am working on the FileBrowser application. My IDE is NetBeans. Can anybody tell me where i can find the fileSystem of the Emulator.
    I checked in the C:\Documents and Settings\Lakshman\j2mewtk\2.5.2\appdb\DefaultColorPhone\filesystem
    and also the folder in the program files.
    I have not the found the folder names "root1/", but in the emulator it is showing the root1/. Any body had any idea about that. I am really confused.
    My intention is to create the folders and view the folder contents say images, text files or anything.
    Can somebody please explain about the file connection api. or else give me the link which can explain how to create folders in netbeans IDE and also able access them
    Thanks
    lakshman

    You're looking in the right place. Netbeans gives you the folder in the console when the emulator starts eg:
    Running with storage root C:\Documents and Settings\Owner\j2mewtk\2.5.2\appdb\temp.DefaultColorPhone245
    The folder is temporary and as soon as you close the emulator the folder is deleted which may be why you can't find it. When you start the emulator again it will use a different number so next time the folder will end in 246.

  • Executing .sql file, path problem,help!

    Hi, could anyone tell me that how to change the default .sql file running path in Oracle 8?
    I am running Oracle 8 resides on IBM AIX server. i found that under SQL prompt, the default .sql file running path is my home directory,e.g./home/user01,so i have to save all .sql files under that directory....could anyone tell me how to modify the default path to other directories.e.g,/home/user01/sql, so i could collect all .sql files under a specified directory?
    Many thanks

    Set the environment variable SQLPATH
    For more information see
    SQLPATH on 9iRel2 on Win XP

  • File Download - new Problem

    Hi java guru's
    I'm trying to write a download pgm using servlet and JSP. The actual problem is, when i'm trying to download a file, the output stream writes all the comtent of the file on the browser itself even if it's a .exe file instead of opening a "Save as" dialog box
    Can you guru's suggest me a best way to overcome this problem!
    Thanks in advance

    Hello friends,
    We can download any files in two ways
    1. calling java script function
    2. read/write operation(io).
    Both codes are working fine. try it and if u face any problem.Please let me know,
    Friendly,
    Jawahar
    bangalore. India
    [email protected]
    =================================
    java script code
    ==============================
    <%
    <!-- file relative path is here -->
    String path ="/jsp/xxx.xls";
    <!-- file name is here -->
    String fileName="xxx.xls";
    %>
    <html>
    <head>
    <title>Down load forms</title>
    </head>
    <body onLoad="window.open('<%=path%>');">
    <table border="0" align="center" width="100%">
    <tr><td height="181"><font face="verdana" color="#5599cc" size="2" align="center">you have selected the file <%=fileName%</font> </td></tr> </table></body></html>
    ==========================================
    Read/write IO operation is here
    ==========================================
    <%
    String files = null;
    String fileName=null;
    <!-- file path is here -->
    String file=".... any path";
    File f = new File(file);
    FileInputStream in = new FileInputStream(f);
    int length = (int)f.length();
    if(length != 0)
    byte[] buf = new byte[length];
    ServletOutputStream op = response.getOutputStream();     
    response.setContentType ("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment; filename=\""+fileName+"\"");
    while ((in != null) && ((length = in.read(buf)) != -1))
    System.out.println("BUFFER $"+buf.length+"$");
    System.out.println("Bytes read in: " + Integer.toString(length));
    op.write(buf,0, buf.length);
    op.close();
    %>     
    <%@ page import="java.io.*,javax.servlet.*,java.util.*,java.sql.* " contentType="text/html" %>
    <html>
    <head>
    <title>Welcome to the download form page</title>
    </head>
    <body bgcolor=#FFFFFF>
    ==========================================

  • Time machine: An error occurred while copying files. The problem could be temporary. If the problem persists, use Disk Utility to repair your backup disk.

    Time machine backups are failing. I've followed the instructions I found on the Time Machine troubleshooting page (http://pondini.org/TM/Troubleshooting.html) but have gotten to where I don't know what to do next.
    Sequence of events:
    The main error message is always:
    An error occurred while copying files. The problem could be temporary. If the problem persists, use Disk Utility to repair your backup disk.
    Yesterday, I opened Disk Utility and verified the disk. Got this error:
    Error: This disk needs to be repaired using the Recovery HD. Restart your computer, holding down the Command key and the R key until you see the Apple logo. When the OS X Utilities window appears, choose Disk Utility.
    I ran Disk Utility and repaired the hard drive. Then I manually started the backup before going to bed, figuring it was going to take a long time to run. When I got up this morning, the backup had failed with the same "could be temporary" error. I checked the log, which says:
    Starting manual backup
    Attempting to mount network destination URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Mounted network destination at mount point: /Volumes/Tery Griffin's Time Capsule using URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Disk image /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle mounted at: /Volumes/Time Machine Backups
    Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
    Event store UUIDs don't match for volume: Macintosh HD
    Error: (-36) Applying backup protections to /Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC
    Error: (5) setxattr for key:com.apple.backupd.SnapshotStartDate path:/Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC size:17
    Error: (5) setxattr for key:com.apple.backupd.SnapshotState path:/Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC size:2
    Deep event scan at path:/ reason:must scan subdirs|new event db|
    Finished scan
    Found 145601 files (11.88 GB) needing backup
    16.1 GB required (including padding), 620.77 GB available
    Copied Zero KB of 11.88 GB, 0 of 145601 items
    Copied 0 files (Zero KB) from volume Macintosh HD.
    Copy stage failed with error:11
    Backup failed with error: 11
    Ejected Time Machine disk image: /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle
    Ejected Time Machine network volume.
    Starting automatic backup
    Attempting to mount network destination URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Mounted network destination at mount point: /Volumes/Tery Griffin's Time Capsule using URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Disk image /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle mounted at: /Volumes/Time Machine Backups
    Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
    Event store UUIDs don't match for volume: Macintosh HD
    Error: (-36) Applying backup protections to /Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/9F8E7957-9C50-49C3-8314-880E5203E3D9
    Error: (5) setxattr for key:com.apple.backupd.SnapshotStartDate path:/Volumes/Time Machine Backups/
    Does anyone know what the problem is here and what I should do?
    Thanks,
    Tery

    You have repaired your boot drive (which is good) but have you repaired your time machine drive?  I don't own a Time Capsule so I don't know if disk utility can operate on it.  If it can, you should repair it as well.  You may need to erase it and start a new backup.  That happens to time machine volumes from time to time and is why people who are serious about their data never rely on a single source of backup.

  • Unable to deploy a war file: could path length in a war file be an issue on WIN2K?

    Hi all,
    I am unable to auto deploy a web app as a war file but has no problem to auto deploy it as an exploded directory that I drop under the
    $PortalHome/config/mydomain/applications directory of the WebLogic Server installation.
    Portal Server runs under W2K.
    I noticed that the generated war file located under $PortalHome/config/mydomain/applications.wlnotdelete contains files which path is 10 level deep and may be over
    255 char.
    Could this be a problem?
    The error I got is:
    ####<Dec 27, 2001 3:29:13 PM PST> <Info> <HTTP> <EBRIDONNEAU> <portalServer> <main> <system> <> <101059> <[portalServer] Loading efs40 from WAR file:
    D:\Bea\wlportal4.0\.\config\portalDomain\applications\.wlnotdelete\wl_comp19136.war>
    ####<Dec 27, 2001 3:29:13 PM PST> <Info> <HTTP> <EBRIDONNEAU> <portalServer> <main> <system> <> <101031> <[WebAppServletContext
    (23419224,personalizedPortal,/personalizedPortal)] extracting classfiles to D:\Bea\wlportal4.0\config\portalDomain\applications\.wlnotdelete\WEB-INF
    \_tmp_war_portalServer_portalServer_personalizedPortal:>
    ####<Dec 27, 2001 3:29:20 PM PST> <Error> <HTTP> <EBRIDONNEAU> <portalServer> <main> <system> <> <101034> <[WebAppServletContext
    (23419224,personalizedPortal,/personalizedPortal)] failure extracting WAR classes>
    java.io.IOException: The system cannot find the path specified
         at java.io.Win32FileSystem.createFileExclusively(Native Method)
         at java.io.File.checkAndCreate(File.java:1162)
         at java.io.File.createTempFile(File.java:1247)
         at weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:95)
         at weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3359)
         at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3330)
         at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:854)
    <snip>
    Thanks for any input.

    Puthanampatti, thanks for responding.
    What is the complete command line to deploy the war to a managed server, not Admin Server ?
    Our thinking is to deploy an exploded war directory but copy the descriptor files first.
    What do you think ?

  • Path problem when moving from Mac to PC

    Adobenoob wrote:
    Hi,
    I'm trying to move our Adobe InDesign installation from Mac to PC, but I ran into a path problem. A lot of our publications/documents in Adobe InDesign have linked to pictures in the filesystem (Windows 2008 R2 server). It goes like this:
    DTP:Produktbilleder:0893ny:0893_467+468_05_Agrp frit_.tif
    And is linked like this directly from InDesign.
    The actual path is:
    /Volumes/DTP/Produktbilleder/0893ny/0893_467+468_05_Agrp frit_.tif
    On the PC I cannot use that path notation and have to go like this:
    F:\DTP\Produktbilleder\0893ny\0893_467+468_05_Agrp frit_.tif
    When the publication/document in InDesign have the Mac link "hardcoded" the PC path will not work.
    Is there a relatively easy way to get the InDesign on PC to use the Mac link or does one have to change all the "hardcoded" links in the publications/documents?
    I hope you understand my question - don't hesitate to ask for more info.
    Best Regards
    Brian

    Hi,
    I have just tested the function - and it seems that the files have to be in the same folder. It is not recursive as I see it. And since we have tens of thousand of pictures in thousands of different folders it does not seem to work.
    Any other suggestions?
    Regards

  • Path problem during  Change of Original

    Hello,
    I am facing path problem while changing the Original file in a DIR.
    let say i created a DIR x and attached file a.txt from c:\ and  saved the DIR.
    Now if i use cv02 and select a original for change the popup window comes with data carrier and original file path  the path is shown as c:\a.txt which is actual original path.
    if i click on continue it is opening the c:\a.txt files and  changes are done on the original file on my pc.
    This way my original file is changed on pc and in DIR also.
    I want to know how to avoid this?.
    Regards
    Shiv

    That is why they call it document "Management".  The Original File is in the "Vault" where it can be managed, not on the desktop.  If you want to protect/save the file on your desktop, set the flag in the config of the workstation application to not allow "rename" of the temporary file.  You are just attempting to circumvent the intended design of the system. What you should really do is set the flag to "delete" the file after check-in.

Maybe you are looking for

  • How to manage one iTunes folder from multiple computers via a network?

    Hi there, The Setup:  I have a macbook air, my partner has a macbook pro, we both have iPhones with our own iCloud accounts. There is an apple TV and an Airport Extreme with an external USB HDD in there too (which could potentially be plugged into th

  • BAPI to Release Process order at once

    I need a BAPI or Function module where i can give more than one process order to be released.

  • I bought adobe creative suite 6 design and web premium

    at the beginning of the year and i am trying to install it now, it is asking me for a 19 digit number as a redemption code, but i can not find this. HELP

  • Cannot install iTunes 7.0.1.8

    I've made the mistake of trying to upgrade iTunes so my daughter can purchase a song. iTunes installer wrecked the existing version and presented the message "The older version of QuickTime cannot be removed." I've tried to uninstall/reinstall severa

  • I don't want Artists photo in my Artists View List.

    iOS 7 - I hated the iTunes Match change in the Cover Artwork list view using Artists' Photo- and many are wrong. There's a way to revert this? Wrong move by Apple- artcover is way better than the band small photo- look all the same now.