How to get the content of the uploaded file.

Hi Experts,
I am using a input box to get the path of the file to be uploaded.(I am not using FILE UPLOAD UI Element).Could you please let me know how to get the content of the uploaded file.
Regards,
Arun

>
ARUN KUMAR.S wrote:
> Hi Experts,
>
> I am using a input box to get the path of the file to be uploaded.(I am not using FILE UPLOAD UI Element).Could you please let me know how to get the content of the uploaded file.
>
> Regards,
> Arun
You will not be able to use a normal InputField to upload file contents.  This is not allowed by the browser security model. You must use one of the upload specific UI mechanisms - the FileUpload UI element or as of 7.01 ACFUpDownload or FlashIslands.

Similar Messages

  • I got some books from the itunes store and put them into my library.  I created a playlist so that I could burn them to cds.  The title is there but no contents.  It won't even play the playlist.  How do I get the contents of the book?

    I got some books from the itunes store and put them into my library.  I created a playlist so that I could burn them to cds.  It won't even play the book, there are no contents.  How do I get the contents of the book?

    I'm guessing this is a problem unique to me as there have been no replies at all...  Thanks a bunch folks

  • Hi, I have a new cell phone, I wanted to give my iphone to my father, instead of deleting the content on the iphone I have deleted the entire iphone. It starts up no more. iTunes will not recognize the iphone. How do I get my old data back onto the phone?

    Hi, I have a new cell phone, I wanted to give my iphone to my father, instead of deleting the content on the iphone I have deleted the entire iphone. It starts up no more. iTunes will not recognize the iphone. How do I get my old data back onto the phone?

    Place the device in DFU mode (google it) and restore as new.

  • How to get the content in embed swf file in Swf Loader on run time

    How to get the content in embed swf file in Swf Loader on run time
    [Bindable]
    [Embed(source="assets/index.swf")]
       private var SWFSRC:Class;
    <mx:SWFLoader id="_swfloader" source="{SWFSRC}" />

    Hi Flex harUI,
    Throw the error.
    Access of undefined property content

  • How to read the contents of the Uploaded file ?

    hi @,
    I have used the File upload and Download UI elements as per the tutorial available. Now my requirement is to read the contents of the file and transfer it to the Backend system.
    How can I achieve the desired fucntionality.
    Thanks in advance,
    Regards,
    Amit

    try this code to store image file in back end system.
    IWDResource res=wdContext.currentMyDataElement().getPictureres();
              InputStream in=res.read(false);
              ByteArrayOutputStream bout=new ByteArrayOutputStream();
              int length;
              byte[] part=new byte[10*1024];
              while((length=in.read(part))!=-1)
              bout.write(part,0,length);
              in.close();
    pstmt.setBytes(8,bout.toByteArray());
    If it is other than image file like word or text then try this in action
    IWDResource resource = wdContext.currentResElement().getResorce(); // your existing handle to the upload resource type
                try {
                   InputStream stream = resource.read(true);
                   byte b[]= new byte[1000];
                   stream.read(b);
                   String str = new String(b);
                   int i=str.length();
                   wdContext.currentContextElement().setOut(str);
                   wdContext.currentContextElement().setSize(i);
                   wdContext.currentResElement().setResourceurl(
                        wdContext.currentResElement().getResorce().getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal()));
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    The in back end field where u store the file should be byte array.
    Regards,
    H.V.Swathi

  • Iphone 4s coming friday, what is the best way to get the notes content from iphone 4 to 4s without doing a restore? i want the new phone to be totally new but not sure how to get notes content across.

    What is the best way to get the notes content from iphone 4 to 4s without doing a restore? i want the new phone to be totally new but not sure how to get notes content across. If I do a restore as I have when previously from one iphone to another it has shown (in settings, usage) the cumulative usage from previous phones so all the hours of calls on all previous iphones will be displayed even though its brand new. Anyone know how I can get my notes (from standard iphone notes app) to my new iphone 4s without restoring from previous iphone 4. Thanks for any help offered.

    First, if you haven't updated to iTunes 10.5, please update now as you will need it for the iPhone 4S and iOS 5.
    Once you're done installing iTunes 10.5, open it. Connect your iPhone to iTunes using the USB cable. Once your iPhone pops up right click on it. For example: an iPhone will appear and it will say "Ryan's iPhone."
    Right click on it and select "Backup" from the dropdown menu. It will start backing up. This should backup your notes.
    Please tell me if you have any problems with backing up.
    Once you backup and get your iPhone 4S, you must follow these steps. If you don't follow these steps, you will not be able to get your notes on your new iPhone 4S.
    Open up iTunes again then right click on your device (iPhone 4S). Once you do you will see a dropdown menu. It will say "Restore from Backup..." Select this and it'll ask for a backup, select it from the dropdown menu. For example "Ryan's iPhone - October 12, 2011." Pick that and it will restore to your backup. Do this when you get your iPhone 4S so you will not lose anything. Even though you're restoring, you're getting back, since you're getting the previous settings, notes, contacts, mail and other settings from your old iPhone. You'll still have Siri though! So, restore when you first get it. Also frequently backup your device, as it will be worth it. You can restore from a backup if something goes wrong or save your data for a future update.
    Once you do that, you should have your notes on your new iPhone 4S and iOS 5.
    Please tell me if you need any help.
    I hoped I answered your questions and solved your problem!

  • How do I update my iPad to ios5 I am getting an error mesage -402653081 while backing up the iPad, if I proceed then I will loose all the content of the iPad?

    How do I update my iPad to ios5 I am getting an error mesage -402653081 while backing up the iPad, if I proceed then I will loose all the content of the iPad?

    The IOS5 upgrade will erase everything on your iPad, so make sure you have a good backup before you start.
    If not, you will just have to reenter all of your settings all over again.  Have you ever backed it up successfully?

  • URGENT: How to read the content of a PDF-file in Java?

    Hello
    What I need are some classes which can read a pdf and translate it in normal Text, so that I can write the content of the pdf in my database.
    Where can I find those classes? Or how else could I get there?

    www.lowagie.com/itext
    www.etymon.com/pj
    www.retep.org.uk/pdf
    www.pdflib.comwww.pdfzone.com
    www.planetpdf.com
    www.purepdf.com
    www.adobe.com
    www.pdfstore.com
    www.adobe.com/proindex/acrobat/formsresources.html
    www.partners.adobe.com/asn/developer/acrosdk/forms.html
    www.rrsys.com
    www.javafoundry.com/javapdf
    www.novagraphix.com/internet_publishing_with_acrobat/forms/forms_tutorial.html
    www.binarything.com

  • How to create a jar having the contents of the jar in a byte array?

    Hi,
    I have a server and client application. My server returns the contents of the jar in the form of byte array to the client on a particluar method call. Now at the client end, i want to reconstruct the jar to be used. How do I do this?
    The server uses the JarInputStream to read the contents of the jar to be returned. I have tried using the JarOutputStream, but looks like this works fine if we have spearate class files to be added to the jar. Now that I have the contents of the jar itself, how do i recreate the jar?
    Can anyone please help me with this?
    Thanks
    Rajani

    Have you ever gotten the raw byte copy to work? If so, how?
    I download a jar via InputStream and save into a jar file via fileoutputstream. It always gets corrupted in the process. The new Jar file has the exact same number of bytes, but doesn't get past the Manifest on a -tvf. In fact, Winzip can open it fine, but can't extract. So close...yet so far.
    Here is a snapshot of my code:
    BufferedInputStream data1=new BufferedInputStream(con.getInputStream());
    DataInputStream data=new DataInputStream(data1);
    StringBuffer buf=new StringBuffer();
    try{
    while((theChar=data.read()) != -1)
    { buf.append((char)theChar); }
    } catch (Exception z){ logger.info("UpdateThread.read Done Reading jar file");}
    data.close();
    File newFile = new File("C:/MyJar.jar");
    FileOutputStream outstream2 = new FileOutputStream(newFile);
    DataOutputStream outstream1 = new DataOutputStream(outstream2);
    BufferedOutputStream outstream = new BufferedOutputStream(outstream1);
    byte [] bytes = buf.toString().getBytes();
    logger.info("Bytes of new Jar file = " + bytes.length);
    int i;
    for(i=0;i<bytes.length;i++){
    outstream.write(bytes);
    outstream1.close();
    outstream.close();
    Any ideas where I'm going wrong?

  • How to determine the mimetype of an uploaded file (GUI_UPLOAD)?

    Hi everybody.
    I use method cl_gui_frontend_services=>gui_upload to upload files and save the binary data in the database. to preview the filetype (pdf, doc, jpg, ...) later i also need to store the mimetype.
    but how can I determine the mimetype of an uploaded file if several file extensions/formats are possible?
    thanks in advance for your help,
    Stefan

    call the function SKWF_MIMETYPE_OF_FILE_GET
    for this pass the filename , you will get the mime type.
    FILENAME                        C:\TEST.PDF  "pass this
    MIMETYPE                        application/pdf "you will get this
    FILENAME                        C:\TEST.JPG
    MIMETYPE                        image/jpeg
    FILENAME                        C:\TEST.DOC
    MIMETYPE                        application/msword

  • How to transfer the content of the video to Adobe Premiere Pro CS3 for editing ?

    Hi there,
    I have an old video camera that is still working. That video camera uses a Hi 8 tape. The tape is bigger that the current DV tape. The size of the tape is something like a tape cassette.
    How to transfer the content of the video to Adobe Premiere Pro CS3 for editing ? Being an old video camera, the output doesn't have any firewire or USB connector. In fact the only output is has is the Yellow, Red & while connector (is this referred to as composite).
    So, how do I input this Yellow, Red & White cable into the PC (or rather into Adobe Pro CS3) ?
    Any established hardware/convertor to recommend ?
    Thanks

    Ryan,
    For "composite out," only you will need an A-D "bridge" to Capture from that camera. Grass Valley/Canopus offers two really good ones, the ADVC-110 and the ADVC-300. There are others and also PCI A-D capture cards, but the Canopus units get very good reviews.
    One other workflow would be to hook your older camera to a digital video camera with passthrough (not all have this and it is being discontinued fairly rapidly in consumer cameras) and then doing the Capture through that digital video camera via FireWire. You will not have Device Control, but can easily start/stop via the mouse and one hand on the switches, or on a remote.
    Good luck,
    Hunt

  • When I plug my iPhone into my computer to sync my iTunes I get a message that says "iTunes cannot read the content of the iPhone" and wants me to restore my phone back to factory settings. Any suggestions so that I don't have to restore?

    When I plug my iPhone into my computer to sync my iTunes I get a message that says "iTunes cannot read the content of the iPhone" and wants me to restore my phone back to factory settings. Any suggestions so that I don't have to restore? I have all of my stuff backed up on iCloud but I really don't want to go through the hassle of wiping it clean and putting everything back on.

    This is a post from a user named edgar999 and it worked PERFECTLY:
    "OK - this is how it works:
    In order to backup from iCloud you cannot use iTunes!
    Therefore disconnect your device from your computer.
    Turn on your device and go to Settings and then go to General.
    At the bottom of this submenu there is a buttom "Reset"
    If you push that buttom you see 6 different Erase settings to chose from!
    Chose "Erase All Content and Settings" because this will wipe everything from your device and will let you restore from iCloud!  (I tried the top "Reset All Settings" but that did not let me use iClouds afterwards!)
    Once you pushed that buttom your device will be wiped clean and after some time you will see the Device Welcome Screen like on a new device!
    After choosing your location you will be asked to setup your WiFi-conection. After  you joint to your Wifi you will be given the choice to restore the iPad from a backup from the iCloud. Choosing this backup will prompt you with your apple ID and password.
    Restoring from a backup can take some time.  The process uses your Wi-Fi connection to download settings, content and data.  If you had a lot of content on your device, this can take a while.  The restore screen should give you estimates at each stage of the restore process, starting with restoring the settings and then booting into the iPad.  When the iPad home screen appears, the device will continue the restore process by downloading all of your applications.
    If you are restoring from a backup because you have run into problems with your device that can only be solved by restoring it, you can first choose your latest backup. If you still have problems, you can move on to the next latest backup, repeating the process until (hopefully) the problem is cleared."
    THANK YOU edgar999!!!!

  • Keep getting "itunes cannot read the contents of the iPad" message when connecting my iPad 2 to Windows XP

    Hi all,
        I have an iPad 2 that I purchased in late 2011. I have a Windows XP PC. Of late, I have not been able to connect my iPad 2 to iTunes on my Windows XP (Service Pack 3) desktop. I keep getting the popular error "itunes cannot read the contents of the iPad. .... restore factory settings" message. I have tried re-installing latest iTunes altogether after fully uninstalling and removing registry entries. But it still keeps giving the same message. I have tried all the steps given here - http://support.apple.com/kb/TS1538 , except checking with a different USB cable. My cable however works well while charging. My system however seems to detect the iPad as camera. I desperately need some help to fix this.
    Thanks,
    Paddy

    Worked for an iPad 4 (Retina) running iOS 7.0.3. connected to a Mac (Mavericks, iTunes 11.1.2). Although the file system is a bit different than what is shown on the video, the basic same steps can be carried out: download iFunbox (for Mac, obviously), go into "Raw file system", then "iTunes_Control" (you may want to switch to list view to see the complete name), then iTunes. There there was no iTunesDB file but I deleted iTunesCDB (was 0kB, expect that might have been the problem) and iTunesControl (0kB as well). Also deleted the Music folder in the previous directory.
    After that I disconnected the iPad from iTunes, quit iTunes, relaunched, and it started sync'ing :-)
    Note that now it's telling me that it cannot sync because an additional 10GB is required! Not sure what the problem is because the bar at the bottom of the iTunes window says it still has another 4GB available. I'm expecting there's a problem with how the size of the music is calculated (perhaps because I also sync Genius playlists and mixes), so I disabled music sync'ing for now so it can complete it once. Then I'll hand-pick the music again and hope it works!

  • How should I tag content created in a master page when addressing accessibility before exporting to Acrobat?  I can't add the content to the articles pannel because it's locked.  I would also like to know how I shold tag my cove content.  I dont' want rea

    How should I tag content created in a master page when addressing accessibility before exporting to Acrobat?  I can't add the content to the articles panel because it's locked.  I would also like to know how I should tag my cove content.  I don't want the reader to get lost in content other than the body of the report, but I also don't want to ignore some content completely by tagging it as artifacts.  What should I do y'all?
    Thanks,
    Josh

    Hi Rob,
    From the screen shots it looks like your script is not formatted properly (you may refer to 'Paladin Script' in 'Sample Project' to get an idea of how the script should be formatted.).
    Further please follow the steps mentioned below to use Story to PP workflow.
    Create a new Film script in Adobe Story
    Create  scene heading – INT. LOCATION – Day (these will show up in the outline view panel on left hand side)
    Hit enter, hit TAB
    Enter the name of the speaker, hit TAB or ENTER
    Copy over the transcribed text
    Build your script this way
    Number scenes from the production menu
    Export ASTX file for your script : File->Export->.astx
    Open Premiere Pro
    Create a new project, bring in media
    In the project pane, find the "Scene" column
    For the clip that contains the spoken text, assign the same scene number to the clip as you have in the story script (lets say both are scene 1)
    Click out of the scene box in the project panel in Ppro
    Right click on the scene that you just assigned a scene number to and select – attach Story script
    Select the .astx fle you exported in step 8
    Click ok
    You should now see the script data in the metadata panel for the clip in the metadata panel.
    You can now run speech to text based on "Embedded Script metadata" to time align spoken word to the script.
    Let us know if this is helpful.
    Thanks
    Rashi - Story Team

  • How to get Composite wsdls to the MDS

    Hello Guys,
    I have been trying to upload the Composite wsdl created using AIA Service Constructor to the MDS. I been using AIAHarvester using Jdeveloper.
    Did follow below mentioned steps from the Readme document
    To install the AIAHarvester Ant tasks into SOA Suite 11g or JDeveloper 11g:
    -Close any open Jdeveloper sessions.
    -Unzip the AIAHarvester zip file. You should end up with a folder AIAHarvester containing the contents of this zip file.
    -Edit tools11g.xml to match your JDeveloper installation.
    Replace every occurance of "$harvester.location$" with the location of the extracted AIAHarvester folder.
    -Merge the contents of tools11g.xml into your JDeveloper's product preferences XML file.
    This is located in ${JDEV_USER_HOME}\system11.1.xxxxxx\o.jdeveloper\product-preferences.xml .
    Insert it it after the lines:
    If there is an existing entry "<hash n="oracle.ideimpl.externaltools.ExternalToolList">, replace with the contents of tools11g.xml.
    If not, add it right after the initial <ide:preferences> element.
    -Start JDeveloper. Under Tools | External Tools you should see two new entries:
    -Submit this File to AIA LifeCycle and OER
    -Submit this Project to AIA LifeCycle and OER
    -Submit this Application to AIA LifeCycle and OER
    -For each of these
    -Select it
    -Click "Edit"
    -Click the "Properties" tab, and configure the missing properties to point to your OER server, SOA Server and LifeCycle DB .
    -To point to an external "HarvesterSettings.xml file: add a property called "settings.file", and set the value to the URL of the settings file,
    for example "c:\temp\MyHarvesterSettings.xml".
    -To run one of the tools:
    -Select a file in the "Applications Navigator".
    -Right click and select "Submit this File to AIA LifeCycle and OER" or "Submit this Project to AIA LifeCycle and OER" or "Submit this Application to AIA LifeCycle and OER".
    -"Submit this File to AIA LifeCycle and OER" will harvest just the selected file. (This works for zips and jars too).
    -NOTE: JDeveloper 11 does not support multi-select correctly for external tools. Even if you multi-select, only one file will be harvested.
    -"Submit this Project to AIA LifeCycle and OER" will harvest just the entire selected project .
    -"Submit this Application to AIA LifeCycle and OER" will harvest all the projects under Application selected.
    When trying to harvest composite wsdl using jdev. I get the following error saying the Harvest mode not set. But I have the set properties set to AIA as the Harvesting Mode.
    C:\\Oracle\\JDev1112_HOME\\AIAHarvester\\Harvester\\HarvesterSettings.xml\par
    Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor\par
    Adding reference: ant.executor\par
    Build sequence for target(s) `introspect-file' is [introspect-file]\par
    Complete build sequence is [introspect-file, introspect-application, introspect-project, ]\par
    \par
    introspect-file:\par
    Property "harvester.mode" has not been set\par
    [repository.submit] 16:11:40,197 0 [main] DEBUG com.oracle.aia.oer.sync.framework.ant.AIAIntrospectTask - jndi.properties file created\par
    [repository.submit] Using existing user key file...\par
    [repository.submit] 16:11:40,869 672 [main] DEBUG com.oracle.aia.oer.sync.framework.ant.AIAIntrospectTask - Harvesting to both DB and OER\par
    [repository.submit] 16:11:40,869 672 [main] DEBUG com.oracle.aia.oer.sync.framework.ant.AIAIntrospectTask - DB Harvesting Started\par
    [repository.submit] root dir = C:\\JDeveloper\\mywork\\Jdev1112\\Hierarchical\\QueryCustomerPartyQCPProvABCSImpl\par
    fileset: Setup scanner in dir C:\\JDeveloper\\mywork\\Jdev1112\\Hierarchical\\QueryCustomerPartyQCPProvABCSImpl with patternSet\{ includes: [composite.xml] excludes: [] \}\par
    [repository.submit] file = composite.xml\par
    [repository.submit] 16:11:41,401 1204 [main] DEBUG com.oracle.aia.oer.sync.framework.ant.AIAIntrospectTask - C:\\JDeveloper\\mywork\\Jdev1112\\Hierarchical\\QueryCustomerPartyQCPProvABCSImpl\par
    [repository.submit] 16:11:41,401 1204 [main] DEBUG com.oracle.aia.oer.sync.framework.ant.AIAIntrospectTask - composite.xml\par
    [repository.submit] 16:11:41,401 1204 [main] DEBUG com.oracle.aia.oer.sync.framework.ant.AIAIntrospectTask - Feeding file C:/JDeveloper/mywork/Jdev1112/Hierarchical/QueryCustomerPartyQCPProvABCSImpl/composite.xml from root directory C:\\JDeveloper\\mywork\\Jdev1112\\Hierarchical\\QueryCustomerPartyQCPProvABCSImpl into Composite Parser...\par
    [repository.submit] 16:11:41,416 1219 [main] DEBUG com.oracle.aia.AIACompositeParser - Open application module\par
    [repository.submit] Aug 19, 2010 4:11:42 PM oracle.adf.share.config.ADFConfigFactory getInstance\par
    [repository.submit] INFO: ADF Config instance implementation in use is : oracle.adf.share.config.MDSConfigFactory\par
    [repository.submit] 16:11:54,714 14517 [main] DEBUG com.oracle.aia.AIACompositeParser - Retrieving data source...\par
    [repository.submit] 16:11:54,730 14533 [main] DEBUG com.oracle.aia.AIACompositeParser - Connect application module to jdbc connection...\par
    [repository.submit] JBO-26061: Error while opening JDBC connection.\par
    \par
    BUILD SUCCESSFUL\par
    Total time: 17 seconds\par
    Process exited with exit code 0.\par
    Any insight on this would be much appreciate. Or is it right way of harvesting content to the AIA MDS.
    Regards
    Sabir

    Hi all,
    As I read through this thread, I'd like to make some clarification.
    AIAHarveter is NOT for publishing contents into MDS. It is to publishing metadata about your composites into Project Lifecycle Workbench and/or OER (pending upon your '-mode' parameter) as described by rwunder
    As part of the AIA best-practice in 11g, the dependent artifacts (e.g., the ABCS.wsdl your composite uses) shall be in the MDS a priori. This is achieve via the 'UpdateMetaDataDP.xml' script as described by Rahul. Further, the ABCS.wsdl reference in your composite.xml shall be in the form of oramds://apps/AIAMetadata/...
    If the jDev plug-in does not work, please use the AIAHarvester.sh command-line for now. Last question, where the readme of plug AIAHarvester in jDev come from? which AIA release?
    Thanks!

Maybe you are looking for

  • Before I ask stupid questions...

    Just taken over at a small post facility and need to read up on Xserve RAID related issues before I ask stupid questions on this forum. So can anyone refer me to any useful sites/blogs/apple articles about Xserve RAID setups geared towards video edit

  • R11: ICO FLOW issues

    Hi guys I'm trying to perform the simplest interco flow transaction. Org 1 (in legal entity A) ships good to customer from org2 (in legal entity B) Everything works until I try to create the intercompany AR invoice on org 2. I get the following error

  • Not Enough Memory error when updating a podcast??

    I am having difficulties with the Radio GoDaddy podcast. Last week when I subscribed, I entered the URL and iTunes downloaded the latest episode, no problem. They release a new episode every Wednesday. So this morning I clicked the Update button and

  • G5 dual 1.8 ghz ?

    I'm thinking of purchasing a g5 dual 1.8ghz unit its not that expensive but I want to know the major draw backs between this unit and going with a new mac pro. I know the price difference but will I see a significant faster performance with the mac p

  • Validar numero de serie

    He instalado el Photosop elements 12 que he adquirido online. Cada vez que lo lanzo me solicita validar el número de serie. le doy a validar y me vuelve el mismo mensaje. creo que no active el producto en el plazo indicado ¿Como puedo solucionar el p