I need some information about File Download & File Upload

Hi  All,
Can any one help me on this, I need some information about File Download & File Upload.
I read tutorial abt file upload and download but some of methods in tutorial are deprecated so i need clear information abt File upload and Download, if possible Code examples.
Thanks
Ragards
Ravi Golla

Hi Ravi
Check out thses links for examples:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
/docs/DOC-8661#22 [original link is broken]
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/202a850a-58e0-2910-eeb3-bfc3e081257f
Otherwise you can simply follow this code for file download
Use the code like this.
1) Create the button and bind the action for it.
2)then write this code in the action.
3) do not write any thing in the init method.
try {
final byte[] content = this.getByteArrayFromResourcePath("C:
xyz.properties");
final IWDCachedWebResource resource = WDWebResource.getWebResource(content, WDWebResourceType.UNKNOWN);
try {
final IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(resource.getAbsoluteURL(), "WD_Filedownload", false);
window.open();
catch(Exception e)
wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(e), false);
5) writr the method getByteArrayFromResourcePath
//@@begin others
private byte[] getByteArrayFromResourcePath(String resourcePath)
throws FileNotFoundException, IOException {
FileInputStream in = new FileInputStream(new File(resourcePath));
ByteArrayOutputStream out = new ByteArrayOutputStream();
int len;
byte[] part = new byte[10 * 1024];
while ((len = in.read(part)) != -1) {
out.write(part, 0, len);
in.close();
return out.toByteArray();
//end
Similarly for file upload
Similarly for upload in to server path also do the same
IWDAttributeInfo attInfo =
wdContext.getNodeInfo().getAttribute("upload");
binaryType =
(IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
uploadedName = binaryType.getFileName();
File filename =new File("
<server name>
<folder name>
"+uploadedName ); );
try {
FileOutputStream out = new FileOutputStream(filename);
out.write(b);
out.close();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();

Similar Messages

  • I need some information about jre 1.5 and jre 1.6.

    Hello guys,
    I need some information about jre 1.5 and jre 1.6.
    Suppose if i have jre 1.5 customized with "additional language support" installed in my my desktop, and later on i install jre 1.6. will this jre over write all the esisting settings which was present in jre 1.5?
    In short will the version upgrades disable the features of the old Version even though the old version is present in the desktop?
    Thanks in advance for your answers.

    In <2j_j3.1889$[email protected]> =?iso-8859-1?B?VG9t4XMgU3XhcmV6?= writes:
    > Hi all, I am developing an acquisition data system for biomedical
    >signals and I need to transmit this data from my hardware to PC using the
    >USB port. For this, I am writing a device driver for Windows 98
    ^^^^^^ ^^^^^^ ^^^^^^^ ^^
    That's not a trivial step. I would write a small C/C++ program that
    exercises your driver (for robustness) just to be sure it's working
    right first without crashing your system.
    >The problem is that I don't know to use this driver in LabView.
    >For now, I think to use a "code interface node" with code writen in C or a
    >"call library function" with a DLL.
    That's correct. _After_ you got your C/C
    ++ test program (and USB
    driver) above working, then you can convert this little test program
    into a DLL or CIN, which can interface with LabView. A DLL might be
    easier (slightly) to write, but the CIN will work faster with LabView
    and can be designed to be reentrant. The Code Interface Reference
    Manual should guide you. Remember, this is a task for an _experienced_
    C programmer. You'll need to use handles to pointers into all your
    dynamic arrays and such passed into LabView.
    After you got your CIN or DLL written, you can use a special CIN
    function node to "link" (or bind) your CIN object into LabView's VI
    diagram.
    SOME THOUGHTS:
    There are many hardware devices already on the market today that come
    with Windows 98 drivers and DLL (or even CIN) libraries that would work
    immediately with LabView. Why don't you save yourself three months of
    work and simply buy one of these?
    /\ Mark M Mehl, alias Superticker (Supertickler to some)
    <><> Internet: [email protected]
    \/ Preferred
    UUCP: uunet!iastate.edu!mehl
    Disclaimer: You got to be kidding; who would want to claim anything I said?

  • Hello please i need some information about the blackberr...

    hello please i need some information about the blackberry instant messenger is how does it work , i heard that i send messages for free from a blackberry to a blackberry is it true ? does it need internet ? and does it matter if the other phone is in another country'
    thank you alot

    Hello,
    Here is a page with much information about BBM:
    http://na.blackberry.com/eng/devices/features/im/blackberry_messenger.jsp
    Hope that helps! If not, Please come to:
    http://supportforums.blackberry.com/rim/
    and register an account. Then post to the applicable forum.
    Thanks!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I need some information about scripts

    hi,
    i need detailed information about scripts.tell me where it will available.
    bye
    sreenu.

    Hi,
    Posting in the ep forum,I believe you require Information on javascripts and client side eventing(EPCF).
    Here is the link that you need with regard to this:
    http://help.sap.com/saphelp_erp2005/helpdata/en/ce/3e98408d953154e10000000a1550b0/frameset.htm
    (Or go to SAP NetWeaver Developer’s Guide->
    IT Scenario-Driven Enhancements to Applications->Running an Enterprise Portal->Core Development Tasks->Creating and Managing Content->Client-side Eventing)
    The below document can also be useful.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/enterprise portal client.pdf
    If you need an illustration of how epcf can be used , you can refer to this blog
    /people/arulraja.ma/blog/2004/12/18/how-to-include-loading-message-in-a-portal-iview-ep6-sp2
    Regards,
    Harish
    (Please award points for helpful answers)

  • We need some information about Photoshop CS4 and Other Adobe Products Purchase

    We purchased Photoshop CS4 Extended for our educational use as Volume License...
    When we purchased the following products:
    1. Adobe Photoshop CS4 Extended
    2. Adobe Dreamweaver CS4
    3. Adobe Page Maker 7.0
    4. Adobe Flash CS4 Professional
    we only got the "SERIAL NO. (VL) with Licence Certificate". We didn't get any Application CD/DVD media or Manuals.?
    Then we downloaded and installed the product with the serial supplied. product is working fine.. but if Adobe is charging such amount for their product, then the Applicatio Media & Manuals should be issued for the client.
    Why?
    kindly send your valuble feedback about this to us on : [email protected]
    Message was edited by: SJCETPALAI2010

    For the past several years, manuals come as PDF files, even if you buy the retail license. Do you hate the environment and want to kill trees?
    Downloaded files should be backed up on a blank DVD.
    Your purchasing agent should have been aware that a license and media are two separate purchases for volume customers.
    SJCETPALAI2010 wrote:
     ...but if Adobe is charging such amount for their product, then the Applicatio Media & Manuals should be issued for the client...
    Adobe is not 'charging such amount'. You have the cheapest license available and have the same product as a retail user. Appreciate it.

  • I need some information about drivers

    Hi all, I am developing an acquisition data system for biomedical
    signals and I need to transmit this data from my hardware to PC using the
    USB port. For this, I am writing a device driver for Windows 98 that receive
    data and put it in a memory buffer. I have a VI which graphs this data in
    LabView 5.0. The problem is that I don´t know to use this driver in LabView.
    For now, I think to use a "code interface node" with code writen in C or a
    "call library function" with a DLL. But I need some help with the "code
    interface node" because this VI don´t use a .c file. Shortly, I apreciate
    some help with this VI or some idea for use the USB port in LabView. Thanks.
    Tomás

    In <2j_j3.1889$[email protected]> =?iso-8859-1?B?VG9t4XMgU3XhcmV6?= writes:
    > Hi all, I am developing an acquisition data system for biomedical
    >signals and I need to transmit this data from my hardware to PC using the
    >USB port. For this, I am writing a device driver for Windows 98
    ^^^^^^ ^^^^^^ ^^^^^^^ ^^
    That's not a trivial step. I would write a small C/C++ program that
    exercises your driver (for robustness) just to be sure it's working
    right first without crashing your system.
    >The problem is that I don't know to use this driver in LabView.
    >For now, I think to use a "code interface node" with code writen in C or a
    >"call library function" with a DLL.
    That's correct. _After_ you got your C/C
    ++ test program (and USB
    driver) above working, then you can convert this little test program
    into a DLL or CIN, which can interface with LabView. A DLL might be
    easier (slightly) to write, but the CIN will work faster with LabView
    and can be designed to be reentrant. The Code Interface Reference
    Manual should guide you. Remember, this is a task for an _experienced_
    C programmer. You'll need to use handles to pointers into all your
    dynamic arrays and such passed into LabView.
    After you got your CIN or DLL written, you can use a special CIN
    function node to "link" (or bind) your CIN object into LabView's VI
    diagram.
    SOME THOUGHTS:
    There are many hardware devices already on the market today that come
    with Windows 98 drivers and DLL (or even CIN) libraries that would work
    immediately with LabView. Why don't you save yourself three months of
    work and simply buy one of these?
    /\ Mark M Mehl, alias Superticker (Supertickler to some)
    <><> Internet: [email protected]
    \/ Preferred
    UUCP: uunet!iastate.edu!mehl
    Disclaimer: You got to be kidding; who would want to claim anything I said?

  • Need some information about TM 8.1and 9.0

    Hello all,
    our customer maybe wants to use TM 9.0. all other versions were not useable from their point of view becausethere are to many customer developments in the integrated LE-TRA TM.
    Now I want to see the masks of TM 8.0 or 8.1 or also 9.0. The problem is that we get the installation earliest  at the end of January.
    Is anyone here who can send me screenshots of all masks? I know that this takes time which we all need to staff our projects.
    A list like a mapping between the fields and functions of "old" and "new" TM would also be very very helpful and great.
    Or do I have the possibility to connect to a TM 8.0/1/9.0? A dummy system would be enough.
    Thanks a lot for your help. Your can also contact me by mail. Maybe we can take a call and talk about my problem.
    Have a nice weekend and a good time these days before Christmas. I hope to hear something from all the experts here.
    Regards
    Michael

    Hi Michael,
    TM 8.0 is released GA (Generally Available).  TM 8.1 is in RKT (Rampup Knowledge Transfer) with GA not yet determined.  TM 9.0 is not yet fully in testing.  What is it that you need for the different versions?
    A better source of information may be found through your AE, but if that is difficult due to the season, please contact me and I will see what I can do to help connect you with the correct group.
    Regards,
    Mike Appleby

  • Need some information about SCM - Module

    dear freiends i have a small doubt,
    sd, mm, this all modules are came under  SCM.
    IS THERE ANY ANOTHER MODULE LIKE '' SCM'' IN SAP.
    Thanks inadvance
    narasimha

    Hi,
    SAP has business suite with some new dimensional products, SAP SCM is part of it. Previously all were emphasizing on the indivisual modules like SD, MM, PP, PM etc., but now SAP is changing direction and talking more about End to ENd Solutions.
    On this road way they came up with these new dimension products.
    SAP SCM,
    SAP PLM,
    SAP CRM,
    SAP ERP
    SAP HCM
    For more details
    http://www.sap.com/solutions/business-suite/scm/index.epx
    Thanks,
    Raja

  • I need some information about using multiple toggle groups??

    Hi,
    I am trying to implement multiple toggle groups in javafx(one for radio button and one for toggle buttons).
    On selecting one of the radio buttons , the toggle buttons appear and I need to perform some operation based on the selected toggle button value.
    But for me only the radio button toggling is working.
    The toggle button is coming as disabled.
    Please help me out.

    Can you post a short, self-contained, correct example demonstrating the problem? The following example works fine for me:
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.RadioButton;
    import javafx.scene.control.ToggleButton;
    import javafx.scene.control.ToggleGroup;
    import javafx.scene.layout.HBox;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class MultipleToggleGroupExample extends Application {
      @Override
      public void start(Stage primaryStage) {
      final ToggleGroup radioButtonGroup = new ToggleGroup();
      final RadioButton rb1 = new RadioButton("Choice 1");
      final RadioButton rb2 = new RadioButton("Choice 2");
      rb1.setToggleGroup(radioButtonGroup);
      rb2.setToggleGroup(radioButtonGroup);
      final ToggleGroup toggleButtonGroup = new ToggleGroup();
      final ToggleButton tb1 = new ToggleButton("Choice A");
      final ToggleButton tb2 = new ToggleButton("Choice B");
      tb1.setToggleGroup(toggleButtonGroup);
      tb2.setToggleGroup(toggleButtonGroup);
      final HBox root = new HBox(10);
      final VBox radioButtons = new VBox(5);
      radioButtons.getChildren().addAll(rb1, rb2);
      final VBox toggleButtons = new VBox(5);
      toggleButtons.getChildren().addAll(tb1, tb2);
      root.getChildren().addAll(radioButtons, toggleButtons);
      toggleButtons.visibleProperty().bind(rb2.selectedProperty());
      primaryStage.setScene(new Scene(root, 600, 400));
      primaryStage.show();
      public static void main(String[] args) {
      launch(args);

  • I need some information about pxi-843X

    Good afternoon!
    my teacher requiered me knowing a lot software code about PXI-8430/2,PXI-8431/4without the hardware,so i am angry,would anybody help me?I am waiting........

    Hope i did not make you more angry
    These are  rs 232and rs 485 serial communication devices
    Read this link for an overview and start going to subsequent links from that page.
    Also this link may help
    and if you plan to code in LabVIEW, go to find examples and execute a search for rs 232 and rs 484 example vi's
    any doubts, do ask
    Message Edited by devchander on 09-19-2006 11:24 PM
    Message Edited by devchander on 09-19-2006 11:25 PM

  • I NEED SOME INFORMATION ABOUT SHARED SEVICES IN SYSTEM9

    .

    "Shared Services provides a centralized system for managing user and group access to Hyperion products. The Shared Services security system consists of corporate or native Shared Services user directories and a common user interface, called User Management console. The Shared Services User Management system enables you to manage and provision users for multiple Hyperion products from a central location. Provisioning refers to the process of assigning roles and access permissions to users for Analytic Services applications. You can use Shared Services to provide security for Analytic Services applications, databases, and objects."
    You can have more info in Essbase DBAG in chapter Designing and Managing a Security System

  • I need some information about ethernet.

    If I connect two iMacs, each with gigabit ethernet capability, to a gigabit ethernet hub, and a third connection to the hub has 100baseTX capability, will the two iMacs operate at gigabit performance when transferring data to each other?

    zanyjudy wrote:
    ... will the two iMacs operate at gigabit performance when transferring data to each other?
    yes.
    JGG

  • I have project I want to run and need some information

    Hi
    I have project I want to run and need some information about technical, consultancy, architecture design
    and what I need for this project (hardware and software(
    I planning to stream live streaming 24 channels,
    The feed is analog from pal STB cable or satellite.
    I want to stream in 2 different resolution and bit rates
    1. full screen 750-850k
    2. 240x360    400-600k
    the format is flash h.264
    The channels are series, sport, news, and movie.
    What recommended card (i have osprey 450e)?
    What kind of requirement of computer I need (CPU, MHZ, CORE, RAM).
    can i use i7 cpu or xeon cpu?
    how many channels i can run in 1 computer?
    I need cheap solution for this project around 20-30k$ for hardware.
    thnaks

    I am working on a similar project.
    Actually, i can encode 2 streams in h.264 with a resolution around 640X480 on a Intel Xeon E3120 (2 core) 3.16 GHZ configuration.
    OS is a windows XP 32 bits. CPU usage is around 75%.
    (note: FMLE instances are run with FMLEcmd not GUI mode)
    Does someone know if i can gain performance with windows XP 64bits ?
    My goal is to encode 4 streams on a single machine, does someone know if a dual CPU, let's say 2 X (4 core) Xeon, is enough ?
    I don't know if FMLE support multiple processor with multiple core configuration.
    I am maybe wrong, but after reading this forum, it seems many people have problems using FMLE under windows vista. Do we gain performance on Vista vs XP ?

  • I need some info about the Document Class.

    Hi,
    I need some information about the Document Class, can anybody
    tell me where I can find it.
    thanks

    Emad Zedan,
    > I need some information about the Document Class, can
    > anybody tell me where I can find it.
    The concept of the document class was introduced in Flash
    CS3. What it
    does is allow you to optionally associate a custom AS3 class
    with your FLA
    in the Flash authoring tool. Your document class effectively
    *becomes* the
    main timeline. This is your chance to influence the
    underlying behavior of
    the MovieClip or Sprite instance that serves as the
    foundation for your SWF.
    If you don't associate a custom document class with your
    FLA, the FLA is
    associated automatically with a default document class called
    MainTimeline,
    which extends MovieClip.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • How i get some informations about audio file?

    Hi to all,
    i would like to know how i get some informations about audio file, such as its artist, bitrate, file type, duration, ecc...
    Any help me?

    Ok, but which are the docs of audio format?Again, what does that have to do with Java?
    Where i can found these documents?Again, what does that have to do with Java?
    Thank you...For nothing.
    db

Maybe you are looking for

  • A slow iMac running 10.6.8 - potential hardware trouble

    Two weeks ago, my computer was operating perfectly well (especially considering how I had been totally ignorant of even the most basic of maintenence procedures). I rarely have a vast number of applications running (five or six at the most - not enou

  • Hiding a column in BSP based on user

    Hi, I have a requirement in which user enters into PCUI Screen in EP Portal where there is button which displays a BSP Page. Now depending on user the page should differ. i.e if user is manager he should see a different page on clicking the button an

  • Line weight dialogue box won't highlight in CS6

    Added to my list of frustrations with CS6 is that when I choose the Line tool using pixels the "Weight" field in the horizontal bar won't highlight when I click in it. It took numerous attempts to realize that I can change it even though it won't sho

  • How to edit your profile picture in OS X Mountain Lion?

    I am trying to edit my picture in System Preferences > Users & Groups Default obviously shows you the stock photos. Recents, shows you recents... and camera allows you to take a new photo now and use photobooth style effects. How can I... use a photo

  • Cannot get migration assistant to work on my mac pro

    I cannot get migration to work from my sony vaio to my mac pro, the pc shows up on my mac, but it keeps saying it looking for other sources, what gives ?