Writing file content on to mobile phone (need to specify the file name req)

Hi,
I have a jsp page which i am trying to execute on a mobile phone. In this page i am trying to open a ServletOutputStream and using this i am trying to write some content on to the phone. But by default the file name is beeing given as the name of the jsp page, so is there any that we can we specify the name of the file explicitly using the program itself (i mean other than the jsp file name). Can some one give me an idea to implement this.
Here is the code snippet used......
ServletOutputStream outstr = response.getOutputStream();
String itemPath = "http://172.10.100.25/file_dwn/funny_pic.gif";
java.net.URL url = new java.net.URL(itemPath);
javax.activation.URLDataSource source = new javax.activation.URLDataSource(url);
javax.activation.DataHandler dataHand = new javax.activation.DataHandler(source);
String file = itemPath.substring(itemPath.lastIndexOf("/")+1);
response.setHeader("Content-Type","application/vnd.oma.drm.message;boundary=foo");     
outstr.println();
outstr.println("--foo");
outstr.println("Content-Type: " + dataHand.getContentType()+";Name=\""+file+"\"");
outstr.println("");
dataHand.writeTo(outstr);
outstr.println();
outstr.println("--foo--");
outstr.println();
outstr.flush();
outstr.close();

Hi,
You can Include a Knowledge Management Folder as a Web Folder, this way you can copy and paste files from KM to  file system very easily.
Check this
http://help.sap.com/saphelp_nw70/helpdata/EN/30/75b62c659d724fb908c74ade23af51/frameset.htm
Regards,
Praveen Gudapati

Similar Messages

  • Reading PDF in large screen mobile phone is often the horizontal screen reading,but the new adobe reader for Android mobile phone needs to be set to automatically turn screen, this is very inconvenient.

    Reading PDF in large screen mobile phone is often the horizontal screen reading,but the new adobe reader for Android mobile phone needs to be set to automatically turn screen, this is very inconvenient.I strongly suggest that the adobe reader Android version add manually rotating screen function, the best is the default horizontal screen reading.

    Reading PDF in large screen mobile phone is often the horizontal screen reading,but the new adobe reader for Android mobile phone needs to be set to automatically turn screen, this is very inconvenient.I strongly suggest that the adobe reader Android version add manually rotating screen function, the best is the default horizontal screen reading.

  • Is there a possibility that the Bluetooth send some content to other mobile phone brands (Nokia, SonyEricsson ...)

    Is there a possibility that the Bluetooth send some content to other mobile phone brands (Nokia, SonyEricsson ...)

    You can only send Top Secret Stolen Documents by bluetooth, nothing else .

  • I am trying to make a pdf of a file and I need to get the file size to be no bigger than 10MB. What is the best way to do this

    I am trying to make a pdf of a file and I need to get the file size to be no bigger than 10MB. Even when I save it, the image quality at minimum the file size is 10.9 MB. What is the best way to do this

    @Barbara – What purpose is that PDF for? Print? Web?
    If web purpose, you could convert CMYK images to sRGB. That would reduce the file size as well.
    A final resort to bring down file size is:
    1. Print to PostScript
    2. Distill to PDF
    That would bring file size down even more. About 20%, depending on the images and other contents you are using, compared with the Acrobat Pro method. If you like you could send me a personal message, so we could exchange mail addresses. I could test for you. Just provide the highres PDF without any downsampling and transparency intact. Best provide a PDF/X-4.
    I will place the PDF in InDesign, print to PostScript, distill to PDF.
    Uwe

  • The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I'm very computer literate and am pretty sure the problem is on your end.

    The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I've tried it multiple times and continue to get the same message: "NOT FOUND The requested item could not be found". I also tried through the Market application on the phone but ended-up with the same result.
    I'm very computer literate and am pretty sure the problem is on your end. If this is the case then no one can download the app. I considered that perhaps because it's still in Beta that it was removed due to some other type of software issue. I would really like to use Firefox on my new Droid (2.0); when with this be available?

    Firefox will not appear in the Market for most phones with incompatible hardware. You can check if your phone is supported here:
    https://wiki.mozilla.org/Mobile/Platforms/Android
    Even on some supported devices, a bug in the Market software prevents Firefox from showing up. This may be related to the fairly recent Android Market app update. If you go to Settings/Applications/Market and choose "Uninstall" you can uninstall the update, and then search for and install Firefox from the marketplace.
    Or, if you have a supported phone, you can download the app directly by typing this address into your phone's browser: http://bit.ly/fxbeta3
    (Note: To download the app directly for an AT&T phone, you will have to search for instructions on "sideloading" the APK file, since AT&T disables the option to install from non-Market sources.)

  • I can't see music/video files from my iPad2 or Nano on my Phillips home theatre. Do I need to covert the files?

    I can't see music/video files from my iPad2 or Nano on my Phillips home theatre. Do I need to covert the files?

    The problem is I can no longer back up my photo and video files taken on my phone, saved to my mac, by copying them and saving them on a USB stick or other external hard drive.
    Select the photos and videos in Photos and use the command "File > Export"  and select a folder on your USB stick to save the photos to.

  • HT201272 I have an album that says I've downloaded, but some of the songs say I need to locate the file. How can I get the rest of my album downloaded?

    I have a few songs on multiple albums that I have paid for. I tried to listen to a few songs. An exclamation point said I need to locate the files. I went in to ITunes and it said the items have been downloaded to my computer. I can't find them. Can anyone help? Thanks!

    You can try manually downloading them:
    1. Open iTunes and click on "Store"
    2. Click "Purchased" in the top-right
    3. Find the Album you need to compete and click the cloud next to it.

  • HT4910 I need to find the file location for my iCal in iCloud

    I need to find the file location for my iCal in iCloud for my Mac. I inadvertently changed the file location in Terminal and need to restore the proper location but do not know how to locate that information. Any help is much appreciated,

    You should find "Preferences" in your Edit menu in iTunes.

  • HT201250 I have done my back up using time machine, now I have a new mac and I need to access the files that I had saved from my old mac. How can I do that?

    I have done my back up using time machine, now I have a new mac and I need to access the files that I had saved from my old mac. How can I do that?

    Use Migration Assistant on your new Mac:
    Click Continue:
    On the next screen, choose your Time Machine backup disk.
    Don't bother to migrate Applications unless you know they will work on your new Mac. For example, PowerPC applications won't work. Just migrate your user account which will copy all your photos, music, movies, and other documents.
    Note: you will not be able to migrate the information to same account in which you are already logged in. Migration Assistant will tell you that and recommend what to do. It can migrate the information to a new account, but you will have to give it a name you might want to change later. One way around this is to create a temporary account, log in to it, and run Migration Assistant which will replace your normal account. Then, log out of the temporary account, log in to your usual one, verify everyting works as you expect, and delete the temporary one.
    All this can be avoided when you set up a brand new Mac by running Setup Assistant which essentially does the same thing to create your new account, but most people are too excited to do that and elect to migrate later.

  • Have downloaded a .epub file from a third party publisher to my pc. Publisher advises that  iTunes is needed to move the file to my iPad. iTunes installed on  both pc and iPad. What's next?

    Have downloaded a .epub file from a third party publisher to my pc. Publisher advises that  iTunes is needed to move the file to my iPad. iTunes installed on  both pc and iPad. What's next?

    Drag or copy the file into the Automatically Add to iTunes folder in your library (default location C:\Users\user_name\Music\iTunes\iTunes Media), or add it manually using File > Add File to Library ...  If the file is compatible with iTunes it'll be added to your library and can then be synced with your iPad.

  • I am running InDesign CS5.5 and trying to open an In Design File but getting an error message. " Cannot open the file "PDavidLCover.indd". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file

    I am running InDesign CS5.5 and trying to open an In Design File but getting an error message. " Cannot open the file "PDavidLCover.indd". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file me be open in another application."Please help I really need to get this file open.

    Since you've shown us the folder contents it's a good bet it isn't in use (no lock file). And it doesn't look like the file is mis-named as there doesn't seem to be anything else there that would be the .indd file (but just in case, open it in TextEdit and paste the first few lines here so we can see what the file header says), so the most likely case is the file is damaged. Is that on a removable device of some sort?
    You can try the tool at Repair corrupt InDesign Adobe files on Mac OS X  or send me a link to the file by private message and I'll try the recovery tool I have for Windows.

  • I have a dilema i use a programme called Mackeeper i accidentally moved several files to my trash,i would like to put the files back where they belong but put back option is in grey and wont work??

    I have a dilema i use a programme called Mackeeper i accidentally moved several checked files to my trash BUT i didnt delete them,i would like to put the files back where they belong but the put back option is in grey and wont work?? i have spoken to Apple and to no avail !!!
    Mackeeper moved my files to my trash so i pulled them out of my trash to my desktop it has copied them to my desktop as well as kept them in my trash!!
    im so confused and things are not working properly anymore such as my google chrome for example...all my book marks are gone BUT i can go to the google file which is out of place on my desktop and view all my bookmarks data...ALL of my files still exist but they are just out of place now which is making it hard for certain options on my computer to work...
    the files includeAccounts,address book plug-ins,addressbook,Adobe,AIM,Alfred,Anquet Maps,Apple,Asramsoftware,Audio,Automatically add to itunes,facebook,facebook 15-53-13-329,faxfresh,five details,flipping book photo album, font collections, fonts, forismatic,Garageband,Gimp,Google,Google 15-53-13-344,icloud,icons,idocument lite,ilife media browser,ilifepage layout,internet plug-ins,ip scanner,itext express,itunes,iweb,Keyboard layouts,Keychains,launch agents,Librarian,limit point software,logs,mail,mail 15-53-13-895,messages,metadata,mobile documents,mobiscope,moso,movie effects,mozilla,MPlayerx,mywebcamBroadcaster,Native instruments,Skype and LOADS more......
    HOW do i get this stuff back to where it is supposed to go so that these programmes work properly again???? i also used delete and command but that did not work either,like i said i have not emptied my trash and ALL the info is there its just totally out of place and the put back option will not work sor some reason!!??? im running 10.8.5 imac someone PLEASE help me!!
    i have not set up time machine either but i do back up to a site called backupblaze...

    Step 1
    Remove "MacKeeper" as follows.
    "MacKeeper" has only one useful feature: it deletes itself.
    Note: These instructions apply to the version of the product that I downloaded and tested in early 2012. I can't be sure that they apply to other versions.
    IMPORTANT: "MacKeeper" has what the developer calls an “encryption” feature. In my tests, I didn't try to verify what this feature really does. If you used it to “encrypt” any of your files, “decrypt” them before you uninstall, or (preferably) restore the files from backups made before they were “encrypted.” As the developer is not trustworthy, you should assume that the "decrypted" files are corrupt unless proven otherwise.
    In the Finder, select
    Go ▹ Applications
    from the menu bar, or press the key combination shift-command-A. The "MacKeeper" application is in the folder that opens. Quit it if it's running, then drag it to the Trash. You'll be prompted for your login password. Click the Uninstall MacKeeper button in the dialog that appears. All the functional components of the software will be deleted. Reboot.
    Failure to remove MacKeeper will result from neglecting any one of these points:
    Quit MacKeeper before dragging it to the Trash.
    Don't empty the Trash after dragging the application to it. Let MacKeeper delete itself.
    Don't try to drag the MacKeeper icon in the Dock to the Trash.
    Here are some general suggestions. If you want your computer to be usable, don't install crapware, such as “themes,” "haxies," “add-ons,” “toolbars,” “enhancers," “optimizers,” “accelerators,” "boosters," “extenders,” “cleaners,” "doctors," "tune-ups," “defragmenters,” “firewalls,” "barriers," “guardians,” “defenders,” “protectors,” most “plugins,” commercial "virus scanners,” "disk tools," or "utilities." With very few exceptions, this stuff is useless, or worse than useless.
    The more actively promoted the product, the more likely it is to be garbage. The most extreme example is the “MacKeeper” scam.
    The only software you should install is that which directly enables you to do the things you use a computer for — such as creating, communicating, and playing — and does not modify the way other software works. Never install any third-party software unless you know how to uninstall it.
    Step 2
    Restore from the last backup that predates the unwanted changes.

  • I worked on a Photshop file yesterday, but today, I received a notification that the file cannot open because it is incompatible. Please help!

    The notification simply states that the file is incompatible with my current version of Photoshop, which is crazy because it was working fine until now and I need to work on this and multiple other files.

    Thank you!
          From: gener7 <[email protected]>
    To: Natalie Fosdick <[email protected]>
    Sent: Tuesday, November 25, 2014 8:35 PM
    Subject:  I worked on a Photshop file yesterday, but today, I received a notification that the file cannot open because it is incompatible. Please help!
    I worked on a Photshop file yesterday, but today, I received a notification that the file cannot open because it is incompatible. Please help!
    created by gener7 in Photoshop General Discussion - View the full discussionIf you have Windows, you can get a backup "shadow copy" of your files if it has been turned on. Shadow explorer will help you find and restore the earlier file. ShadowExplorer.com - About Also go into Photoshop Preferences > File Handling and set Maximize Compatibility for PSD and PSB files to "Always". Gene If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/6963078#6963078 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/6963078#6963078 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"  Start a new discussion in Photoshop General Discussion by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • I have a mac os 10.5.8, i want to upgrade to mac os snow leopard, can i keep all my files (documents, music on itunes) without backing up all the files first on a external device prior to the upgrade?

    I have a mac os 10.5.8, i want to upgrade to mac os snow leopard, can i keep all my files (documents, music on itunes) without backing up all the files first on a external device prior to the upgrade?

    I strongly advise against upgrading the OS without first making a backup. Were something to go wrong you would lose all your files without the backup. See:
    How to Install OS X Updates Successfully
    A. Repair the Hard Drive and Permissions:
    Boot from your current OS X Installer disc. After the installer loads select your language and click on the Continue button. Then select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally. 
    If DU reports errors it cannot fix, then you will need Disk Warrior (4.0 for Tiger) and/or TechTool Pro (4.5.2 for Tiger) to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    B. Make a Bootable Backup Using Restore Option of Disk Utility:
    Open Disk Utility from the Utilities folder.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.
    C. Important: Please read before installing:
    If you have a FireWire hard drive connected, disconnect it before installing the update unless you will boot from this drive and install the update on it. Reconnect it and turn it back on after installation is complete and you've restarted.
    You may experience unexpected results if you have installed third-party system software modifications, or if you have modified the operating system through other means. (This does not apply to normal application software installation.)
    The installation process should not be interrupted. If a power outage or other interruption occurs during installation, use the standalone installer (see below) from Apple Downloads to update.  While the installation is in progress do not use the computer.
    D. To upgrade:
    Purchase the Snow Leopard Retail DVD.
    Boot From The OS X Installer Disc:
    Insert OS X Installer Disc into the optical drive.
    Restart the computer.
    Immediately after the chime press and hold down the "C" key.
    Release the key when the spinning gear below the dark gray Apple logo appears.
    Wait for installer to finish loading.
    E. If updating:
    Download and install update(s) 
    Use Software Update, or
    Download standalone updater(s).

  • I had an Ipod touvh given to me and need to delete the acct. name on it and rename the Ipod.  how do I do this

    I have an Ipod touch that was given to me recently and I need to delete the acct. name and rename the device.
    How do I do this???

    See the linked I provided in my first post above.  However, if you have already updated the device in iTunes it should do the same thing, erasing all content on the device and resetting all settings since you have connected to a new/different iTunes library from what it was originally set up with.
    If after the restore, the same Apple ID is still showing up (the old one), head to Settings -> Store and sign out of that account and then sign in using your own Apple ID credentials.
    B-rock

Maybe you are looking for

  • How can i see the "manage devices" in my itunes account? because i want to remove a device from using my apple id. tnx so much

    how can i see the "manage devices" in my itunes account? because i want to remove a device from using my apple id. tnx so much

  • Multiple Return Types

    haven't been around in a while, so I thought I'd stir up some comments with a suggestion for a new feature in Java, which I'm sure has been suggested at some point, but I can't remember seeing it talked about, so here goes: Multiple Return Types: pub

  • Custom Level Greyed out

    I am need to uplock this, via registry.  as need to do some testing and set Outlook Web App to prompt for username and password

  • Opening .bat files on my mac

    A couple of months ago, i installed a windows application to my mac via crossover. However, it quickly became outdated and needs to be patched, but the patch uses a .bat (batch) file. Seeing that i do not have and will not buy a copy of windows, nor

  • Update 10.6.4 Conflicts

    My partner updated his iMac with today's update and now iTunes will not open and causes his computer to freeze entirely. After the first effort to open iTunes, we used the disk utility to repair permissions. After the 2nd attempt to open failed, we u