Upload Images and giving an action to image

Hi,
I  want to upload images  and by clicking that image it must go to next view.
Could you please suggest me some of the steps to upload image and to make an action on image.
Regards,
Anitha

You can use FileUplod UI Element for uploading your photo.
and to make image as action you can use LinkToAction UI Element and put the full image name(with file Ext) in ImageSource property of LinkToAction UI Element, after that create a action and put the required code for next level of prcessing
use this running code for uploding you file
String FileName = "temp;
       InputStream input = null;
       int i=0;
          FileIncreament();
          try {
                    String directory =".\\temp\\webdynpro\\web\\local\\yh1245_ftp"+
                    "\\Components\\com.yash.yh1245.Upload\\"+FileName+wdContext.currentContextElement().getCounter();
                         boolean sucsss = new File(directory).mkdir();
                         if(sucsss){
                              wdComponentAPI.getMessageManager().reportSuccess("Directory Created ");
                             File file = new File(directory+"\\"+wdContext.currentContextElement().getResourceURL().getResourceName().toString());
                              FileOutputStream fos = new FileOutputStream(file);
                              wdComponentAPI.getMessageManager().reportSuccess(file.getAbsolutePath());
                              FilePath = file.getAbsolutePath();
                              wdComponentAPI.getMessageManager().reportSuccess("AbsolutePath......."+file.getAbsolutePath());
                              if(wdContext.currentContextElement().getResourceURL()!=null){
                                   input = wdContext.currentContextElement().getResourceURL().read(false);
                                   //wdComponentAPI.getMessageManager().reportSuccess("Resource is not null ");
                                   while((i = input.read())!=-1){
                                        fos.write(i);
                              fos.flush();
                              fos.close();
                              wdComponentAPI.getMessageManager().reportSuccess("File Uploaded on server directory ");

Similar Messages

  • I scanned an image and want to use the image trace tool, but it doesn't pick up all the lines.  Is there a way to darken the lines before using the image trace tool?

    I scanned an image and want to use the image trace tool, but it doesn't pick up all the lines.  Is there a way to darken the lines before using the image trace tool?  Help!

    If the scan is in B&W, then play with the Threshold setting here
    If it's in Color, then you will have to open the scan in a Raster editing software (like Photoshop) and play with the Brightness/Contrast settings to make the lines bolder.

  • How can I take an item from one image and move it to another image?

    How can I take an item from one image and add it to another image, and rotate it to fit?

    Carefully select the objects of interest in one image and then copy, scale and position them into the other image. Then touch up the composite.
    Have to Love Photoshop for Retouching Images!

  • Is it possible to clone an object from one image and paste it on another image?

    Is it possible to clone an object from one image and paste it on another image in Aperture?

    As Frank said,
    but Aperture has a nice clone tool - the drawback is, that it only works within one image.
    What I sometimes do - as a workaroud, when I want to use the clone brush, is to combine the image I want to clone from and the image I want to clone into, into one single image by printing them together to pdf as jpeg. Then I can clone from the second to the first, for example, to be able to add an fairy to a flower: Picking up the head of the fairy in the right image and brushing it into the left one. Occasionally I prefer the Aperture brush to the Photoshop lasso.

  • Resizing 1) background images and 2) div's containing images

    I just created a web page consisting of little more than an image (about 900 pixels) wide which is set at width=100% in a style sheet. It works great, but I'd like to substitute a smaller image (to reduce page loading time) in mobile devices.
    If it was a background image, I could just declare two different background images based on screen size, but I don't know of any way to swap between images actually inserted in a page.
    So, is it possible to give a background image a width in percentage, similar to a static image? In other words, if my screen was 651 pixels wide, then a static image inside a container spanning the entire screen should also be 651 pixels wide. Can I rig it so that a background image in that container would also be 651 pixels wide?
    Of course, the obvious problem is height. If a background image measures 900 X 1200 pixels, and a screen is 600 pixels wide, then even if there's a style that makes the image 600 pixels wide, it would also have to calculate a height of 800 pixels, and I'm guessing that can't be done.
    Anyway, I'd just like to know what kinds of tricks one can use in making background images and divs containing static images display in percentages based on screen size.
    Thanks.

    Use background-size:cover; for your background images.
    Further reading: http://css-tricks.com/perfect-full-page-background-image/
    EDIT:// For swapping out placed images, it's a little harder to do right now as there is no specified solution from W3C. Some people want to use the srcset attribute, others the <picture> tag. There is no perfect approach right now. See: http://mobile.smashingmagazine.com/2013/08/21/webkit-implements-srcset-and-why-its-a-good- thing/
    One idea is you could hide the image and then load a background-image in the container which is smaller in size. But this would likely bloat your HTML and CSS as you use multiple images - the device will also load both images so you don't gain any real advantage unless you intend to show a croppoed or different image.
    Other ideas: http://mobile.smashingmagazine.com/2013/07/08/choosing-a-responsive-image-solution/
    <div class="image">
         <img src="YourImage.jpg" alt="" width="500" height="250" />
    </div>
    @media only screen and (max-width: 480px) {
         .image img {display:none;}
         .image {
              background:url("YourImage_Mobile.jpg") no-repeat 0 0;
              background-size:cover;
    Another idea is to show/hide the relevant image:
    <img src="YourImage.jpg" alt="" width="500" height="250" class="desktop" />
    <img src="YourImage_mobile.jpg" alt="" width="300" height="180" class="mobile" />
    @media only screen and (max-width: 480px) {
         .desktop {display:none;}
         .mobile {display:block;}

  • Internal links in portal (CSS, images, and other struts actions)

    Good morning gurus! I have another question regarding Struts Portlets. We have an application that builds a page with an image that comes from the database. The application is composed of two Struts actions. One that's in charge of drawing the page and the other action is in charge of bringing the image from the database. The second action is called from a JSP (img src="/getImage.do"). In portal, once the portlet rendered the JSP it doesn't recongnize the other links inside the JSP (the call to the second action). Also, other links suchs as images, CSS, and others Struts actions are not recognized. How can I access images, links, and CSS from the main application (the actual application).
    Best regards,
    Marcelo Oliva
    Message was edited by:
    molivas08

    Hi Andrew -
    This is a pretty big topic for one thread ... I will try to provide some pointers on where to look for more information.
    1. Need ability for non-html literate authors to update text, images and links on their portion of a shared web page
    In the following whitepaper, see the section: Associated Funtion for Item Display
    http://www.oracle.com/technology/products/ias/portal/pdf/oow_10gr2_1336_fender.pdf
    This will allow you to prompt your non-HTML literate users for the "parts" to display and you worry about the UI.
    2. Need ability to enforce common look and feel on content provided by non-html literate authors.
    Create pages based on Templates. Templates can force the style on users. Again - do not use text items and the RTE for users, you control the display with an Associated Function.
    3. Prefer ability to approve content before it goes live.
    Grant content contributors "Manage with Approval" access
    5. Need advanced search capabilities
    Check out the search section on Portal OTN
    http://www.oracle.com/technology/products/ias/portal/content_management_10gr2.html
    Hope this helps,
    Candace

  • Replacing image and keeping existing action in Flash CS5.5

    I'm updating an existing Flash swf file that was created using CS5.5. The only thing I have to do is replace the image used. When I import the new image it changes the action used with the existing image. How can I import the image I want to use AND keep the existing action that was used? My apologies if I'm using the wrong forum for this question. Thanks!

    attach a screenshot that shows what you're doing when importing and describe the location of the code relative to the about to be replaced image.

  • How do I save image and text as a single image in InDesign CS5.0?

    How do I save an image and text as one image in InDesign CS5.0? NOT 5.5.
    I need to save the image as a 72-dpi, jpg file for ePub purposes. I designed a book and am handing it off to someone for ePub.
    This is what I've tried:
    1) Copied from InDesign, pasted into a PhotoShop doc as a Smart Object. Saved it as 72 dpi jpg, then imported back into ID.
    2) Took a screenshot of ID page, placed it in PS, saved as 72 dpi, imported into ID
    3) Saved page as a PDF from InDesign, then saved PDF as 72 dpi jpg, then imported into ID.
    4) Save page as a PDF from InDesign, placed into Photoshop and saved
    as 72 dpi, then imported into ID.
    5) Saved as an EPS from InDesign, placed in PS, then imported back to ID.
    In all cases, the type looks terrible. It doesn't seem to matter whether I copy or place into Photoshop, though placing is slightly better.
    HELP!!!

    In all cases, the type looks terrible. It doesn't seem to matter whether I copy or place into Photoshop, though placing is slightly better.
    Naturally what you did will result in rasterized text. Did you preview with high quality settings?
    Are you sure the people who will handle that downstream need pixel images and do you have the exact pixel dimensions needed?
    Why did you place the image back in Indesign, by the way? 

  • Get bounds of image and bounds of frame of image?

    How can I get both the geometric bounds of an image AND the geometric bounds of the frame of the image as I loop through all the images in a document?

    Here's the Apple Script version of the script:
    tell application "Adobe InDesign CS3"
         set TheDocument to active document
         set TheGraphics to all graphics in TheDocument
         repeat with n from 1 to (count TheGraphics)
              set TheGraphic to item n of TheGraphics
              set TheLink to item link of TheGraphic
              set TheImage to parent of TheLink
              set TheFrame to parent of TheImage
              set ImageGB to geometric bounds of TheImage
              set FrameGB to geometric bounds of TheFrame
              set ImageVB to visible bounds of TheImage
              set FrameVB to visible bounds of TheFrame
              set TheText to "Name: " & name of TheLink & return & ¬
                   "Geometric Bounds of Image = " & ImageGB & return & ¬
                   "Geometric Bounds of Frame = " & FrameGB & return & ¬
                   "Visible Bounds of Image = " & ImageVB & return & ¬
                   "Visible Bounds of Frame = " & FrameVB & return & return
              my write_to_file(TheText, true)
         end repeat
    end tell
    on write_to_file(this_data, append_data)
         try
              set the log_file to (path to desktop as text) & "Geometric and Visible Bounds Report" as text
              set the open_target_file to open for access file log_file with write permission
              if append_data is false then set eof of the open_target_file to 0
              write this_data to the open_target_file starting at eof
              close access the open_target_file
              return true
         on error
              try
                   close access file log_file
              end try
              return false
         end try
    end write_to_file
    Kasyan

  • Can I attach a link to one image and then use that linked image multiple times in my site?

    Hi,
    Is it possible to attach a link to an image and then use that image (with link attached) multiple times in my site.
    Thanks,
    Ally

    Use 'Find and Replace'>under the 'Edit' menu.
    Select from 'Find in'- Folder and browse to the folder your website files are kept in to select it.
    Search: Source Code
    In the Find box (but obviously use YOUR image code):
    <img src="images/imageName.jpg" width="200" height="200" alt="" />
    In the Replace box: (use YOUR link and image code)
    <a href="yourLink.html"><img src="images/imageName.jpg" width="200" height="200" alt="" /></a>
    Then select 'Replace All'

  • How to save appropriate images and then discard the saved images after using.

    Hi,
    The attached program is used for gesture recognition and playing the corresponding audio file for each recognized pattern. It is saving all the images that are captured and is using in pattern matching. if pattern for "A" is captured ,then almost 10 to 15 intermediate images are captured along with pattern "A". If all are pattern matched then audio file of "A" will be played for 4 or 5 times which is not desirable. Also the images saved in the imaq write folder are getting piled up. They should be discarded after they are used up in pattern matching otherwise it would be a waste of system memory. Can anybody  advice in correcting.
    Thanking you. 
    Attachments:
    program help.zip ‏721 KB

    Hi,
    The attached program is used for gesture recognition and playing the corresponding audio file for each recognized pattern. It is saving all the images that are captured and is using in pattern matching. if pattern for "A" is captured ,then almost 10 to 15 intermediate images are captured along with pattern "A". If all are pattern matched then audio file of "A" will be played for 4 or 5 times which is not desirable. Also the images saved in the imaq write folder are getting piled up. They should be discarded after they are used up in pattern matching otherwise it would be a waste of system memory. Can anybody  advice in correcting.
    Thanking you. 
    Attachments:
    program help.zip ‏721 KB

  • I need the ASD 3S144 image and also the ASD 3S146 image.

    Hi,
    I have many Apple desktops and laptops, I need the URL to the ASD 3S138, the ASD 3S144, the ASD 3S 146 and any of the 150's series ASD.
    I've bought about $100,000 of Apple computers over the last 10 years, I think I deserve to be able to diagnosis them with FREE DIAGNOSIS IMAGES, on my own.  So could someone give me the URLs so I can download the diagnosis EFIs?  Thanks.  I'm sure glad Apple isn't too fascist to stop me from figuring out what'w wrong with the Macs they sold me,... that their Stores won't work on, calling them 'vintage'... thanks again.

    Please understand that these forums are composed of Apple users and not Apple employees.  You will have to contact Apple directly regarding your request;
    http://www.apple.com/contact/
    Ciao.

  • How Can I take this image and put it in another image? Basically Background but different

    So, I got photoshop today for a project I have to do and have never used it in my life. I am making a childrens book for school and I am trying to pug the corner pug in this photo onto the couch of the next photo. I am going to use the various expressions of the pug in different settings but I want just the pug I choose to be there withouth the other ones or the white background. Im aware that its watermarked, Im just going to ignore that unless someone has specific instructions on how I can get that off aswell. How do I do this? Please be specific, thanks!

    Open the picture of the pugs. On the Toolbar click the icon for the Lasso tools. In my PSE version this is row 2, column 1 of the Toobar; it might be in a different location in your version. On the tools option bar you will see icons for the different types of lassos. Select the Magnetic Lasso. Click on the pug you want and slowly trace his outline. At the end click again to complete the selection. The pug will be outlined in "marching ants".
    Copy this selection to the clipboard: Edit > Copy.
    Now open the picture of the sofa. Paste the pug from the clipboard: Edit > Paste. The pug will be placed on a new layer in the Layers Palette.
    You will probably want to resize him. To do that, activate the Move tool (row 1, column 2 on my Toolbar). Eight handles will appear around the pug. Holding down Shift, drag any corner handle to resize (Shift preserves the proportions). Also use the Move tool to position the pug where you want him using the mouse. You can also use the arrow keys to fine-tune the position.
    <edited by forum host>
    If when you selected the pug you selected some excess white outside his outline you can remove this with the Eraser tool (row 7, column 1). Similiarly if you had not selected all of the pug you can use the Brush to paint in the rest. You can also use the Eraser for example to flatten the bottom of the pug as I have partially done.

  • I have a problem when cropping 8 but tiff files in elements 12. Once area is selected and I crop the image it disappears. The file no. sill shows but the image is not viewable. I have saved the file from that point and tries reopening but the image isn't

    Has anyone experienced this before ? I have previously been able to crop images with no problem. Recently when I open an image and crop it and confirm the action the image 'disappears' If I save and go to reopen the file is there but it will be  zero meg in size.

    Hi,
    Try resetting the crop tool.
    To the right of the tool option bar, click on the little horizontal lines and you should see reset tool option.
    Good luck
    Brian

  • Images and XML forms and Images and scaling

    Hello,
    I have two questions about using images in XML forms.
    1) How do I insert images into the XML form editor.
    The thread HTML Editor in XML Form? (Posted: Aug 26, 2004 7:50 PM), discuss how the HTML Editor in XML forms can be extended to be able to insert images like in the KM editor.
    Has anyone any practical experience with this?, as the thread is fairly old.
    And is there other solutions which are more suited?
    The portal is running on WAS 6.40, EP 6.0 SP11
    2) Is is possible for the portal to scale images
    In the portal, different users will use XML forms to publish news stories. These users will want to publish images along with the text.
    In many content management systems, the system will automatically scale the images (e.g. create one thumbnail, a mid-size image and keep the full size) Can this be achieved in the portal.
    The reason for this is to make sure that no one can post a very large image and to make sure each image is the same size.
    I'm interested in hearing how other people, solve the issue with uploading and scaling of images used in the portal.
    Kind regard,
    Jørgen Ruud
    Will reward SDN points.

    Hi Sumit,
    Just to add to what Duncan had said ... please ensure the following things as well
    1. Access portal using FQDN
    2. Maintain proper browser settings http://wiki.sdn.sap.com/wiki/display/EP/MSIE6BrowserSettingsforaccessingSAP+Portals
    3. Please go through the forum link http://forums.sdn.sap.com/thread.jspa?threadID=1814082
    Regards,
    Mahesh

Maybe you are looking for

  • How do I transfer my iPhone, currently synced to a PC to sync with my Mac, which my iPad currently syncs with?

    My iPhone 4 currently synchs with iTunes on my Windows PC.  I also have an iPad, which synchs with iTunes on my Mac.  I'm about to retire my Windows PC and would therefore like to switch my iPhone to synch with iTunes on my Mac.   My Mac iTunes alrea

  • Errno 13: Permission Denied in DB13 check db

    In DB13 for check db I get the following error: Job started Step 001 started (program RSDBAJOB, variant &0000000000422, user ID MCCARTJX) No application server found on database host - rsh/Gateway will be used Execute logical command BRCONNECT On hos

  • Flash plays very laggy/slow in firefox.

    I have this problem for a while, The Flash player doesn't work in my Firefox browser. It works great in Chrome and IE. When I log on a site that has flash, the mouse cursor gets really heavy and the flash video is very laggy and slow. It's not the ca

  • Save pdf file as csv

    I currently have a pdf file and need to save it as csv

  • W32time source showing as Local CMOS clock

    I have 3 virtual servers, all on different hosts, which are currently showing the wrong time. All other machines on the Domain get their time from the Domain Controller. I have only been making changes on 1 server to ensure that this works. Originall