Question Regarding Sending Files to a servlet

hi to all!
juz want to ask if there are ways to send a file to a servlet? is it by using FileConnection API? how can i send a specific file to a servlet?
thanks for the response in advance!
mark

Exactly! but you can also use simple InputStream or ServeltInputStream:
(this code is located in the servlet request processing method.....)
        ServletInputStream si=request.getInputStream();
        byte [] buffer =new byte[1024];
        int ch;
        int index=0;
        while ((ch = si.read()) != -1 && index<buffer.length-1) {
            buffer[index]=ch;
            index++;
        }

Similar Messages

  • This question regarding sending mail from sap

    hi to all,
    this question regarding sending mail from sap
    rt now iam able to send mails from 500 clint, what r the setting i need to do send mails from my another client 700,
    iam using ecc 6.0 with sql database
    regards,
    krishna
    Moderator message: FAQ, please search for available information before asking.
    locked by: Thomas Zloch on Aug 16, 2010 2:11 PM

    hi to all,
    this question regarding sending mail from sap
    rt now iam able to send mails from 500 clint, what r the setting i need to do send mails from my another client 700,
    iam using ecc 6.0 with sql database
    regards,
    krishna
    Moderator message: FAQ, please search for available information before asking.
    locked by: Thomas Zloch on Aug 16, 2010 2:11 PM

  • Doubt regarding sender file content  conversion

    Hi Experts
    This is my source XML structure, how to define Sender file adapter (Content Conversion)  and filed lenths: COMMIT_I 1, STUDENT 12, ID_TYPE 6, ID_NUMBER 60, VALID_FROM 8,VALID_TO 8
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:IDENTIFICATION_ADD_Req_MT xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">
       <COMMIT_I>X</COMMIT_I>
       <IDENTIFICATION>
          <STUDENT>Student</STUDENT>
          <ID_TYPE>New</ID_TYPE>
          <ID_NUMBER>12345</ID_NUMBER>
          <VALID_FROM>12/03/2008</VALID_FROM>
          <VALID_TO>13/04/2008</VALID_TO>
       </IDENTIFICATION>
    </ns0:IDENTIFICATION_ADD_Req_MT>
    Please suggest me how to configure Sender file content conversion
    Thanks
    Dhanush.

    hi sekhar,
    Just go through this blogs & links.
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    reward points if found helpfull
    regards
    chandra.k

  • Hi Question about Sender File Content Conversion

    Hi All,
    I have a flat file i need convert that flat file to the below XML format using File content Conversion, can anybody help me on this with example File content Convertion parameters
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_FileSend xmlns:ns0="http://test">
       <Recordset>
          <Contact>
             <Name>ABC</Name>
             <Number>123</Number>
             <Address>
                <HouseNumber>246789</HouseNumber>
                <StreetNumber>100</StreetNumber>
                <Phone>
                   <Mobile>90000000</Mobile>
                   <LandLine>12345678</LandLine>
                </Phone>
             </Address>
             <Email>
                <Office></Office>
                <Personal></Personal>
             </Email>
          </Contact>
       </Recordset>
    </ns0:MT_FileSend>

    Hi Sudheer reddy,
            Good question.
    File content conversion parameters are:
    1) Doccument Name: Doccument name is nothing but message type name for file side: MT_FileSend
    2) Doccument Namespace: mention the name space for the message type.
    3) Doccument Offset: for which row and which coloumn doccument has to be write.
    4) recordset name: mention the record set name: Recordset
    5) Recordset Namespace: if the namespace is different for message type name space mention name space or otherwise it is blank.
    6) Recordset Structure: Mention the structure name
    7) Recordset Sequence: mention the sequence of the recordset Ascending or Decending
    8) Recordset permessage: Would define no of record sets per message.
    9) Key-field name: to query to the doccument
    10) Key field type: string(Case-senstive)
    fieldValues
    fieldSeparator
    endSeparator
    Note: pls check in SDN about file content conversions it so many blogs are available, u can easily understand.
    Regards,
    Sateesh

  • Waveburner;  a few Questions regarding track files and Session Data

    After a bit of negotiating, I'm almost ready to burn. Was having problems with file locations and discovered that i had multiple files in different locations. Those have been eliminated and all relative track files are in one place now with the Song Data File as well.
    I then re-imported the individual aif tracks only to find that all of my fades and edits are GONE. It appears that I may have to DO THEM ALL OVER AGAIN! Please tell me that there is a work around.
    Is it possible to import only the Session Data related to the fades and edits(everything but the actual audio files), so as to avoid all this "do-again" work?
    I was also wonder if it is necessary, or perhaps a good idea, to change the File INFO for each of the individual audio track files from "OpenWith" iTunes (default setting) to "Open With": WAVEBURNER ?. (selectable on the aiff files, "Show More Info" window
    Currently the aif files are set to "OpenWith" iTunes (default)
    One last question please.
    Is Waveburner really up to snuff? How many people are using this for Mastering and Burning CD's? I'm about to start inserting some AU Mastering Plug Ins and I'm hoping for the best. Any other suggestions are greatly appreciated.
    G5 Dual 2.0/PBook G41.5Ghz/LogicPro7 Live5 Reason3.0 PansncDA7 TascamFW1804   Mac OS X (10.4.7)  

    You're grammer isn't bad jord, it was I who asked a plethora of questions under one Subject heading.
    When i open the project file(.wb3),
    The prompt says;
    "Please choose a replacement from the list below:"
    /Volumes/320GB HD/Users/ahuihou/.Trash/1 Track 01.aiff
    /Volumes/320GB HD/Users/ahuihou/.Trash/2 Track 02.aiff
    /Volumes/320GB HD/Users/ahuihou/.Trash/3 Track 03.aiff
    /Volumes/320GB HD/Users/ahuihou/.Trash/4 Track 04.aiff
    /Volumes/320GB HD/Users/ahuihou/.Trash/6 Track 06.aiff
    As you can see the files are in the trash.
    The first problem is that there are no actual files in the trash. Just an icon of a CD Disc which was dragged there to eject it, It is no longer in the disc drive/tray. Perhaps i should put the disc back in the drive and then update/replace the files afterwords. (The CD is scratched.)
    The strange thing is that i can still preview the track that's in the trash by selecting More Info and playing it on the little Quicktime player bar. I guess the file is in a cache somewhere?
    I've looked everywhere on all drives for the specific files but can not find them anywhere.
    In the Replacement prompt there is a place that I can check to "Search in the same folder for subsequent files" button on the "Replacement" prompt.
    which "same folder" is it refering to?
    The Trash folder where the old files are or the Folder where the actual .wb3 project file is? I do have all of the correctly named song files/regions in the same folder with the project file.
    maybe i should just start again. i'm not one to give up easy though and would much prefer to "beat" the computer at the game.

  • General question regarding environment files in APPL_TOP

    Hi. I will be passing my OCP (hopefully) next month and I am now turning my head to teh Applications side since my job involves a lot of Oracle Financials.
    I just did a clean installation of 11.5.10.2 but at the level of seeting environment files, my boss swooped in and did them all. I would love to know which ones need changing, or even which ones do what ...
    I am using the Oracle doc Re: Generate the Database Context File
    to follow with, but what I see before me in our own (9i, AIX 5.2) set up doesnt always mirror what the doc says.
    I need some general information about these env. files. In our <ORA>APPL directory we have the following env. files:
    APPSORA.env
    DEV.env
    DEV_davidcl.env
    APPSDEV_davidcl.env
    DAVIDCUST.env (I have changed our firm's name to David)
    In the doc, it explains that there is a "main applications env file", and a consolidated applications file". <CONTEXT_NAME>.env and APPS<CONTEXT_NAME>.env respectively. Which ones are those in my directory listing?
    I have also checked in the .profile of the appcldev and the appdbdev users, and they both point to the same two environment files -
    $APPL_TOP/DAVIDCUST.env
    and
    $APPL_TOP/APPSORA.env
    Sorry this is a bit scrambled message - is there any other source out there to explain environment files?
    Thanks
    DA

    Thanks - they are the same! That's why the DEV_davidcl.env has all the parameters that according to the doc APPDDEV_davidcl.env should have.
    Thanks - very helpful. The DBA here never has any time to explain this stuff, since I think he's been doing it for so long that he doenst understand why anyone would not know it too. Its very hard working for him sometimes since nothing is explained.
    All of my questions are stemming from this clean installation of 11.5.2 that I have done.
    I am still wondering about the .profiles of each user we have on the system though. I understand that we had to copy the profiles from TEST to this, our DEV side, then we edited the profiles to match the DEV parameters. Fine.....but the actual .env files themselves - I am looking at them and dont understand at all.
    Each .profile and each user are as follows:
    appdbdev:
    appdbdev@TEST:more .profile
    APPL_TOP=/oradbi3/oracle/testappl;export APPL_TOP
    . $APPL_TOP/DAVIDCUST.env
    . $APPL_TOP/APPSORA.env
    appcldev:
    appcldev@TEST:more .profile
    APPL_TOP=/oracli3/oracle/devappl;export APPL_TOP
    . $APPL_TOP/DAVIDCUST.env
    . $APPL_TOP/APPSORA.env
    So these two, both on the cl node, appear to be pointing to same env files.
    Then comes the db node:
    oradbdev:
    oradbdev@TEST:more .profile
    . /oradbi3/oracle/devdb/9.2.0/DEV_daviddb.env
    . /oradbi3/oracle/devappl/DAVIDCUST.env
    I think I can understand the .env that are pointed to on the cl node, but I dont understand the oradbdev .profile, since its pointing to oradbi3/oracledevdb for one env file, then oradbi3/oracle/devappl for another.
    I asked our DBA about this, and he said "dont worry about it". I have to try and run the script to start the application server this morning, but every time I try to su to the db node user I get this:
    doralcl:/> su - appdbdev
    .profile[2]: /oradbi3/oracle/devappl/DAVIDCUST.env: not found.
    Like I mentioned, I pinted this out to our DBA and he told me not to worry.
    DA

  • Question regarding php files in apex bundle apex_4.0.2.zip

    hi
    please suggest why we have php files in apex ? I belive the spell checker textarea feature is removed from 4.0.2 but still there are some php files found in apex bundle and cause of this we have one vulnarability issue “Upgrade to PHP version 5.3.12 / 5.4.2 or later. A 'mod_rewrite' workaround is available as well.”
    Please suggest if we can remove these files or they are really necessary and should stay in images folder ?
    folder: \images\fck\editor\dialog\fck_spellerpages\spellerpages\server-scripts
    spellchecker.php
    spellchecker.cfm
    spellchecker.pl

    Hi Sachin,
    you can remove the "server-scripts" folder. In newer versions of APEX this folder is not included anymore.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Another question regarding smil files and NPR

    I'm having troube listening to NPR smil files. I've read the previous posts regarding this issue, but seem to be experiencing a different twist. There are no files downloading to play when I click on "listen". When I click the "listen" button a QT safari screen appears and I get a spinning arrow with heading "downloading". However, nothing ever downloads to my desk top. This is very strange as just last weekend I downloaded NPR files and they were saved to my desktop as Real Time files and I was able to play with them with no problem. I've done nothing to QT or RT in the mean time.
    I've tried the previous suggestions posted of going to the Get Info section of a previously downloaded smil file and changing the settings to say all smil files should play with RT - restarted my computer - nothing. Help!

    Was able to figure this out myself. Had to go into QT preferences and elect to not play smil type files and go in to RT and re-elect to play smil files using RT. Restarted my computer and it works like a charm.

  • Question regarding transferring files to my other computer - ???

    Hi, I have a question ... Here's the background ~ I have two iPods (iPod touch and iPod nano, older model) and want to be able to sync them with the laptop my brother gave me. It's a Dell, running Windows Vista - Business version (??)... I'm in the process of moving all my files over, or rather, I would like to move all my files over from my eMac (Mac OSX 10.4.11) to the Dell and then replace my eMac with a newer desktop computer because the eMac has been running poorly for some time now. My other files moved over fine but the stuff I've downloaded from the iTunes store doesn't move properly, much of it says it can't be moved from the eMac. Some of it came over... the newer shows, for example (Fringe, and Dr. Horrible) but all the shows I've downloaded for my kids won't move over. It's not an issue of hard drive space, as I have plenty. And I've checked authorization ~ both computers are authorized, so I should be able to move it right?? But the iPods refuse to sync with the Dell.
    What's going on? I feel like an idiot (and probably am :: lol :: )
    Thanks in advance =^_^=

    Am I able to just "plug and play" or do I need to download the software that came with my HD to my computer first?
    You can use the hard drive as is; the software is intended for Windows and/or is intended for a specific purpose beyond simply storing data on the drive, such as automated backups.
    Secondly, how do I transfer my iTunes and iPhoto files over to the HD and retain my playlists and photo albums?
    Create a new Finder window, click on the item in the Finder's sidebar with the house icon, and then drag the items Music/iTunes/ and Pictures/iPhoto Library/ to the drive. You may want to erase the drive in the Disk Utility, which is in the /Applications/Utilities/ folder, first.
    (25705)

  • Question regarding sending email to multiple recipients

    Hi All,
    I am creating a workflow that will send an email notification everytime a new campaign is created. I've learned that R16 is capable of sending emails to multiple recipients, the only concern I have is I can't find any doumentation on how to do it. It is stated in the R16 Administrator Preview Guide that you can select 'Specific Email Address' and enter multiple email addresses directly, I tried to enter multiple email addresses separated by comma - [email protected],[email protected],[email protected] as an example, but it doesn't work and prompts me to enter a valid email address. Could anybody guide me on how to enter multiple email addresses once the 'Specific Email Address' is selected or how to do it in the expression builder to define the expression that will define the list of emails. I know that using group email addresses can be used as an alternative to this requirement but I hope theirs a way to do this with workflows.
    Thanks,
    Wayne

    According to the R16 Admin preview guide;-
    "Send Email to Multiple Recipients
    Expression Builder is now linked to the email address text field that is presented when the Specific Email Address
    option is selected. Workflow administrators can enter multiple email addresses directly, or click the "fx" icon
    beside the field, and use Expression Builder to define expressions that evaluate to one or more email addresses.
    The benefit of this feature is that emails can be stored on any text field in the base record and multiple emails can
    be sent using one workflow action. "
    But how that works exactly is not clear, I have tried commas, semi-colons, spaces, apostrophes, doublequotes, to separate and try to establish the correct syntax without luck.
    Bob - Perhaps you can do some digging and find out the correct syntax for multiple addresses?

  • Questions regarding jsp file download from blob

    Hi developers, i'm doing jsp file download from a blob column in DB2 using struts,
    1) How do i design the jsp page such that the page will show perhaps a hyperlink for me to download the file?
    2) What about struts-config.xml? Do i need to modify any mappings there?
    It would be great if some kind developers were to provide some sample codes for me. Thanks alot. Your effort is kindly appreciated.

    http://kr.forums.oracle.com/forums/thread.jspa?threadID=1982213 - looks similar, you may need to change contentType as per use case

  • Silly question regarding exporting files

    If you export as png 8, 24, 32, whatever, does the original
    FW file remain the same? In other words, when you export as gif or
    jpeg you literally create a new file. When exporting as png you
    don't? How then to differentiate between, say, a png 32 and the
    original FW file?

    Paevo Kelley wrote:
    > If you export as png 8, 24, 32, whatever, does the
    original FW file remain the
    > same? In other words, when you export as gif or jpeg you
    literally create a new
    > file. When exporting as png you don't? How then to
    differentiate between, say,
    > a png 32 and the original FW file?
    >
    As long as you do not use the same file name in your export,
    your
    original FW png file will not be harmed.
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    Adobe Community Expert
    http://tinyurl.com/2a7dyp
    See my work on Flickr
    http://www.flickr.com/photos/jim_babbage/

  • BPC 7.5 NW SP5 - Question regarding Transformation file for exporting data

    Hi Experts,
    I have a requirement to export data from a BPC application to App.server/UJFS. There are currently 13 dimensions in the application. The user requires the output file to contain only three dimensions followed by the amount(signdata), namely
    | COSTCENTER | ACCOUNT | TIME | AMOUNT |.
    How do i handle the same in transformation file?
    Currently i am using the following transformation file but i am having issues validating it.
    *OPTIONS
    FORMAT = DELIMITED
    HEADER = YES
    OUTPUTHEADER=*COSTCENTER,ACCOUNT,TIME, PERIODIC
    DELIMITER = ,
    AMOUNTDECIMALPOINT = .
    SKIP = 0
    SKIPIF =
    VALIDATERECORDS=NO
    CREDITPOSITIVE=YES
    MAXREJECTCOUNT=
    ROUNDAMOUNT=
    *MAPPING
    COSTCENTER=*COL(2)
    ACCOUNT=*COL(4)
    TIME=*COL(13)
    AMOUNT=*COL(14)
    I tried to remove the OUTPUTHEADER from *options and tried but it still gives the same issue.
    Please help me as to how i can handle this scenario.
    Thanks,
    Victor

    The 'Export' data package which comes as part of a support pack enhancement does not support using Transformation/Conversion files to modify data prior to transport.
    Please refer to section 3 (Limitations) in the below how to guide.
    http://www.sdn.sap.com/irj/bpx/go/portal/prtroot/docs/library/uuid/b0427318-5ffb-2b10-9cac-96ec44c73c11?QuickLink=index&overridelayout=true
    Hence your only option is to manually massage data in the spreadsheet after exporting.

  • HT3529 Question regarding sending a text message to an email address

    I have an Iphone #G. I am using Tmobile service on it.  If I send a message (in my text messages, not email account) to an email address, it looks like a text message when I send it but their reply, looks like an email to me ([email protected]), and it always includes my original message with their reply.
    How can I make my messages that come to my email ([email protected]) resemble a text message like they do when I send the message to an email account.   Is this a setting that can be adjusted?
    Thanks!

    Can't send a text message to their phone number.  They don't have texting - they only do emails.  So I have to send my message to their email address.

  • Buying a new MAC..question regarding moving files

    I have an iMAC that is many years old. I also have a Powerbook which is approx. 3 yrs old. I'm considering buying a new MAC. I'm into photography and need lots of hard drive and the newer screens are much more inviting. Anyway, I know when I purchased the laptop I connected it to the iMAC and it loaded all the programs, fonts, etc so I could just start using the laptop with all the things I had on my iMAC. Since both of my machines are quite old I have lots of stuff on them that quite frankly I'm not smart enough to know that I don't need. I don't want to immediately fill up hard drive space on my new machine with things that are worthless. Is there a way of getting things I need and use onto my new computer (like website downloaded fonts, actions, effects) without getting the worthless stuff? Thank you so much.

    your case must be similar to mine - below is the final of what I did:
    for the entire history of the problem see: http://discussions.apple.com/thread.jspa?messageID=6864711&#6864711
    my final reply: I managed to do it using ethernet cable!
    I did erase and install on MBP while having it etherned to MB then when it comes to the screen when it asks: do you want to transfer... i chose from another mac. then comes the option use firewire or small button: use ethernet. Pressed it and I get info:
    put the install dvd 1(MBP) into your other computer and install: DVD or CD sharing setup
    so when you put MBP install DVD into MB you get window and among other things there's a folder: optional installs and there this DVD or CD setup
    Then when Migrating Assistant is open on MB comes up a dialogue box and then there is an option transfer to another Mac
    'your info has been transfered succesfully'
    I had to do it using ethernet cable - $3.95 for firewire it's incredibly cheap - but I don't live in the US - here this cable costs around $50
    thanks for the time and help!

Maybe you are looking for