Save Uploded Image in FileUpload UI Element to local server

Hi Guys,
I need to do be able to upload an image in my WD application and save the image on a local server (not on SAP MIME, SAP Application Server or anything like that please).  The path of the server I need to save it to looks something like this: *
haxxyy.wx\Files\Another_File\my_image.gif*.
I am having trouble doing this.  I manage to upload the Image using the WD UI Element FileUpload.  I understand that the Image is being stored as xstring in the "Data" attribute of this Ui Element, But I do not know what to do with this xstring to save it to the pre-mentioned destination.
Should I use FTP or something...  Or is there a Function Module you know of.
Kind regards,
Christiaan

Hi,
When u create FileOutputStream object, u can specify the location where u want to place the file in the server. If the file is already in the server, create a FileInputStream object of that file and copy that file in a new location in the server.
Regards,
Piyush.

Similar Messages

  • How to limit file size for FileUpload UI element?

    Hi all,
    I'm using the FileUpload UI element in NW2004s SP20.
    I want to limit the size of the uploaded file.
    The simple option is to load the file to the context, check the size, by using
    InputStream stream = resource.read(false);
    double size = stream.available();
    and report errors if any.
    However, I don't want to store huge files in the context or flie system (even temporarily) nor 'spend' network resources for uploading a file that I won't be use...
    Is there a way to limit the file size by using some property for the fileUpload UI element in the server?
    Is there a way to check the file size before it's uploaded (for example like GMAIL does - checks the file BEFORE the actual upload)
    Regards,
    Omri

    Hi Omri,
    "(but this can be checked AFTER the file was uploaded)" - what do you really mean here? I mean your main query is to restrict the file upload if it crosses certain size-limit. What is the use if you check the size after upload?
    My problem is the network traffic and the CPU load if users are trying to download huge files..., if the upload is restricted for size this download problem will not come .. correct?
    Not sure about the UI element properties has something to restrict the size, and if its really related to Network traffic and CPU utilization, i think you've to check with Basis team to re-sizing the servers to meet this new requirement of upload/download if its not considered before.
    Or the last option i could see is to use KM Upload iView if sizing is done with these considerations.
    Thanks,
    MS

  • Upload / Save file via FileUpload UI Element under predefined path

    Hi,
    I am pretty new to this topic and need some help.
    I need a Web Dynpro App where I can select a file via FileUpload UI Element and save this file to a predefined path e.g. to a server. I already found [this help|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71?quicklink=index&overridelayout=true] but in this example the file is stored at the SAP Server!
    How can I achieve this? May you give me a sample code?
    I appreciate your help.
    Regards

    Hi Martni, Above answer was incomplete
    try{                         
         File fp = new File(relativePath+ fileName);
         fp.createNewFile();
         FileOutputStream fos = new FileOutputStream(fp);
         BufferedOutputStream bos = new BufferedOutputStream(fos);
         InputStream l_is_FileStream = elAttachmentsElement.getVa_Resource().read(false);
         int l_int_NoOfBytes = l_is_FileStream.available();
         byte[] byteArray = new byte[l_int_NoOfBytes];
         l_is_FileStream.read(byteArray, 0, l_int_NoOfBytes);
         bos.write(byteArray);
         bos.flush();
    catch (Exception e) {
         wdComponentAPI.getMessageManager().reportException("Cannot save the file: "+fileName);
    In the above snippet "relativePath" is the path to the folder in WAS and  "filename" is the name of the file along with its extn Ex. test.doc, or image.jpg
    InputStream l_is_FileStream = elAttachmentsElement.getVa_Resource().read(false)
    The above line of code is the sixth line in the snippet and here "elAttachmentsElement" is the element of the node having "Va_Resource" context attribute, which is bound to FileUpload UI element.
    Regards,
    Vishweshwara P.K.M
    Edited by: Vishweshwara P.K.M on Jun 28, 2010 1:31 PM

  • Edit images in Adobe Photoshop Elements

    I am helping a student who is running iPhoto on Maverick.  He wants to edit his images in Photoshop Elements.  We set his preferences to do this but when he selects an image and clicks on Edit, all he gets is the welcome page of Photoshop Elements.  The image doesn't open in Elements.  What could we be doing wrong?
    Mary Lou

    Previous versions would install a folder with the file you want, Adobe Photoshop Elements Editor.app, buried one layer down in another folder named Support Files.  That's the one you want to select from iPhoto.
    I don't know if the layout of the installed files is the same with the newest version. However, the following may be of help:
    Using Photoshop or Photoshop Elements as Your Editor of Choice in iPhoto.
    1 - select Photoshop or Photoshop Elememts as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop.  When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window
    that indicates that  PS wants to save it as a PS formatted file.  You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    With Photoshop Elements  the Saving File preferences should be configured as shown:
    I also suggest the Maximize PSD File Compatabilty be set to Always.  In PSE’s General preference pane set the Color Picker to Apple as shown:
    Screenshots are from PSE 10
    Note 1:  to switch between iPhoto and PS or PSE as the editor of choice Control (right)-click on the thumbnail and select either Edit in iPhoto or Edit in External Editor from the contextual menu. If you use iPhoto to edit more than PSE re-select iPhoto in the iPhoto General preference pane. Then iPhoto will be the default editor and you can use the contextual menu to select PSE for your editor when desired.
    Note 2:  editing a RAW file with either PSE or PS creates a new file which must be saved outside of iPhoto, i.e. the Desktop, and imported as a new photo into the iPhoto Library.

  • Save as TGA File ? [Photoshop Elements 12]

    Hello everyone,
    I am using Photoshop Elements for a couple months now, and would like to know how to save my images as .tga files.
    I found on another thread a link for a plugin, but that only allows me to load in tga's and when saving, it would give me an error message.
    Can anyone help?
    Thanks!
    -Gie

    gie005 wrote:
    Hello everyone,
    I am using Photoshop Elements for a couple months now, and would like to know how to save my images as .tga files.
    I found on another thread a link for a plugin, but that only allows me to load in tga's and when saving, it would give me an error message.
    Can anyone help?
    Thanks!
    -Gie
    Gie,
    Download and install this free program: www.irfanview.com
    Save you file in PSE as JPEG, TIFF, or PNG, etc.
    Open the file in Irfanview and save as .tga

  • How do I save an image that's in a web site's background?

    I know how to save an image that is not in the background, I just drag it to my desktop. But I cannot do the same with the image in the background of the page, and when I right-click on the backgroung there is no option for that.
    Does anybody know how to do this?
    Thanks.

    Hi
    on my 10.5.8 & Safari 4.0.4 - I right click on the background, choose "inspect element" and in the Web Inspector window that opens... look for 'background url' over on the top right.
    You should be able to ctrl-click that url & then paste it in a new tab or window.

  • How do I save merged layers as jpg in Elements 12?

    I am unable to save a completed project as a jpg file even after carefully merging the layers. The only way I can do that appears to be to use Save for Web - and I do not want to compress the images as web images.
    Also, in Elements 9 I could open a PSE file in layers and continue to edit - in 12 I cannot do that.
    I'm really very discouraged and wish I had my Elements 9 back.

    If you reopen your PSE file in create (that should happen automatically), then go to File>Export Creations:
    You should get this window:

  • How can I save my images like a "wedding photographer" does?

    I have a Pixma PRO-100. . . with a Windows 8.1 PC. . . and printing through Adobe Photoshop Elements 11.
    I just printed some wedding pictures of my daughter - which I got from the "wedding photographer"... when I printed them - they were an exact match to what I saw on my screen (which I've calibrated)... and dead on crisp, great quality.
    I'm wondering what a wedding photographer does to their images to make them so "solid" in printing.  How do they save them?
    when I print something from a my files, (Raw, NEF, or JPEG's) - there always seems to be a color or quality problem? Never a match.  It takes several adjustments and print samples before I get what I want. 
    Is the ICC Profile a problem - or How can I save my images like a wedding photog does?  So they print exact?
    Joe B

    " ... (Raw, NEF, or JPEG's) ... "
    I suspect there are some minor differences you are not seeing and/or noticing on screen.  But right off, no real wedding photographer will shoot in anything except RAW.  You should be using RAW, only, too.  The RAW file to start with has way more info in it than any jpeg does.
    Next I would bet your wedding photographer does some tweaking to highlights and shadows, plus s ome other stuff that you are not.  In other words he is getting the photos ready for printing. Remember printing on paper and "printing for on screen" is two different things.
    EOS 1Ds Mk III, EOS 1D Mk IV, EF 50mm f1.2 L, EF 24-70mm f2.8 L,
    EF 85mm f1.2 L II USM, EF 70-200mm f2.8 L IS II,
    Sigma 120-300mm f2.8 EX APO, Photoshop CS6, ACR 9, Lightroom 6

  • Can I save many images at once ?

    Is there a way to save multiple images, after editing in Photoshop Elements 12 ?
    I can save them one at a time, but this is pretty tedious when I have 1,000 or more to do, after flipping them all.

    lporebski1986 a écrit:
    Can you explain it easier for me? I am very beginner at Photoshop Elements.
    I am doing that: Open P.Elements > File > Open in Camera Raw > (Select Files, e.g. 100 from some trip) > (Do some changes to all images) > Click Open Image in P.Elements > (Do some other retouch) > File/Close All > Click Yes I want to save changes to file > and then I need to change format to JPEG, click Yes to overwrite file and Ok to JPEG option for all e.g. 100 files. Can I do this more automatically way? (e.g. click save change for every JPEG and confirm once)
    Thanks in advance for help.
    When you use the ACR dialog to edit your raw images, after editing each picture, you have the choice to use the 'Done' button, which saves your edit settings in a tiny sidecar xmp file. Or if you need additional editing in the Elements editor, you click 'Open' and continue editing in the editor. In that case, yes, you have to save the result as jpeg and that creates a version set with a jpeg associated with the raw file. In your case, be sure that the menu on the bottom bar is set to export to 8 bits; that way the jpeg format will be preselected and you won't have to choose the format each time.
    In a normal workflow, you won't have to do many additional edits in the editor. You'll simply use the 'Done' button most of the time.
    Now, you generally need jpeg versions for different purposes: printing at home or from an external service, showing on your display or on the Web. You have to select the pictures for each purpose and choose the right format, size for your purpose, for instance printing or sending to the Web. That's where the organizer comes into play. Different ways to select your files to output, in albums for instance. The File/'Export as new files' lets you choose those formats and size; it will also let you rename your pictures; it will create the jpegs you want as new files ready for your purpose, even if your original files are raws.
    Some users want to get a jpeg version of a batch of raw files even without opening the raw files in the ACR module. The above method also works for them.
    If you don't use the Organizer, you also have a way from the editor: the File/process multiple files menu. That will work from either open files, or from files within a folder.

  • Workflow Question...How to Save as JPEG after Sending to Elements?

    i understand how to export files right from lightroom and save them as jpegs...but i have a related question i haven't found the answer to...
    let's say i do some post processing in lightroom but want to do a couple of things in elements afterwards. i understand how to get the worked on image into elements (photo--edit in), but the file that is now in elements cannot be saved as a jpeg...is there a step i am missing, or do i have to get that image back into lightroom to then export out as a jpeg? if so how do you get the reworked file back into lightroom with the elements changes still intact? thanks.

    You don't give details about "the file that is now in elements cannot be saved as a jpeg", but it's likely what's happening is this:
    You give the Photo > Edit In command, and LR opens the Edit Photo With Photoshop Elements options window. You select one of the Edit A Copy options, and the Copy File Options in that window specify TIFF with a Bit Depth of 16 bits, so a 16-bit TIFF gets opened in PSE.  PSE can't save a 16-bit TIFF as a JPEG, so you don't see JPEG as an option in the File > Save As command.
    Some options:
    1. In PSE, do Image > Mode > 8 Bits to convert the TIFF to 8 bits/pixel.  Then you can do File > Save As to save the image as a JPEG.  You'll then need to import that JPEG into your catalog (or use Synchronize Folder), and you'll probably want to delete the TIFF copy that was created and sent to PSE.
    2. In PSE, just do Save, which will save your changes in the TIFF copy that LR created.  You can export that TIFF as a JPEG and import it back into your catalog in one step by setting the Add To This Catalog option in the Export window (you might want to check the Add To Stack option also).  You could define an Export preset called "Export as JPEG into catalog" that captures these export settings for convenient one-click use.   You'll have to manually delete the TIFF copy that was created and sent to PSE.

  • Importing RAW images from iPhoto to Elements 8

    I just successfully downloaded Elements 8 (the free trial version). I have an iMac, and until now have used iPhoto for all of my photo file storage and editing needs.
    I need to import some of my original RAW files from iPhoto into Elements 8. How is this accomplished?
    I got the images I wanted into Elements 8 by selecting all the images I wanted to import, then dragging and dropping. The result? The images all got imported into Elements 8, but they are showing up there as jPegs.
    The images were originally brought into iPhoto as RAW files, and I never converted them into jPegs, so they should still be RAW files in iPhoto. Why, then, do they show up in Elements 8 as jPegs? And how do I import directly from iPhoto into Elements 8 and keep the images being imported as RAW files?
    Any insights/help would be greatly appreciated.

    Using Photoshop (or Photoshop Elements) as Your Editor of Choice in iPhoto.
    1 - select Photoshop as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    NOTE: With Photoshop Elements 6 the Saving File preferences should be configured: "On First Save: Save Over Current File". Also I suggest the Maximize PSD File Compatabilty be set to Always.
    If you want to use both iPhoto's editing mode and PS without having to go back and forth to the Preference pane, once you've selected PS as your editor of choice, reset the Preferences back to "Open in main window". That will let you either edit in iPhoto (double click on the thumbnail) or in PS (Control-click on the thumbnail and seledt "Edit in external editor" in the Contextual menu). This way you get the best of both worlds
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..

  • How do I change the raw image to jpeg with element 6

    How do I change the raw image to jpeg using element 6?  I am using a canon 10D camera.

    From the Editor choose:
    File >> Open
    Then navigate to your raw file
    When the image appears in the converter use the sliders to make your raw adjustments, then click open image.
    From the Editor use:
    File >> Save As >> jpeg
     

  • In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?

    In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?

    Please don't post the same question multiple times!

  • In the new iphoto app, why can't i save multiple images to camera roll at once?

    why can't i save multiple images to camera roll at once? it seems i can only save one at a time and its very frustrating..
    the options seem to be there, they are just greyed out and i cant click on them.
    at first i thought its because the images were too big, so i tried it with smaller images but same thing.
    APPLE HELP!

    I can confirm @khaniff's original post the option in iPhoto for iOS is greyed out in conflict with the referenced article that follows:
    Save to the Camera Roll
    Tap a photo, album, or event and tap .
    Tap Camera Roll.
    Confirm or change the photos you want to share by tapping an option.
    Select all the photos in an album or event: Tap All.
    Select a range of photos: Tap Choose, tap Range, tap the first and last photos in the range, and tap Next.
    To use your photo in another app, open the app and select the Camera Roll album.

  • FileUpload UI element -"browse"label is not coming in Hungrian for Hungrian

    Folks,
    We are using FileUpload ui element in our application, our application supports English , Hugrian languages, Problem is here , label on browse button coming in English for hungrian users.
    I believe  no need to add any translation to browse label in .xlf file,
    can any one tell me how to add Hungrian translation to Browse label, how to check standard translations of file upload ui element?
    Thanks & Regards,
    Veera.

    Hi Anup,
    portal User language is already hungray and rest of the labels in page are coming in hungrian as we maintained in -hu.xlf file.but for FileUpload ui element there is no option to map label of  "browse"  button with a message pool attribute.
    Thanks & Regards,
    Veera.

Maybe you are looking for

  • Officejet pro x476dw legal sized paper adf scan

    Hi, I have been using officejet pro x476dw for 6months, and I figured out that I can't scan 2-sided legal sized document. Is it impossible to scan 2-sided legal size documents on ADF? Do I have to scan them MANUALLY? If this machine doesn't support 2

  • Error when connecting more than 50 users ??

    I use database 8iEE & form server (9ias rel1) on different box to deploy form on the web the error occur when user connect more than 50, but it's ok when connect to database using sqlplus Is there someone has the same experience ?

  • Disappearing custom snippets

    Last week I painstakingly recreated in DW CS5, Mac, the custom Snippets folders I'd used in DW CS4, Win -- since I hadn't found a quick way (there should have been one) to export my existing CS4 Windows Snippets and import the resulting file into my

  • Getting lots of data onto and off of the iPhone

    Suppose I write a program for the iPhone that does audio or video editing, or anything else that creates large files which users will want to move to their computers; or users might want to move large source files from their computers to their phone

  • Is there an App that lets me keep track of Apps ive purchased ?

    Is there any way for me to keep track of how much i have spent on apps ? i purchase an app or two every other day and i get my bills in my email, but i get them every other day aswell but i dont want to have to look at the 15 different emails i have