How to upload the image after Cropping or rotation

i have developed the applet for image rotation and cropping at the client side.i am able to do the all operation at client side but my problem is to how upload those file to server.please any one help me regarding this issue because i am new to java technology

here by i posted my html page.here what actualy happening is first user selects the number of image to be upload.then i will create that much applet.here user will clicks on applet to select the image then he will do the all the operation.then user will clicks on submit to subit the image.here hidPath contains path information about the image but not the file ex (d:\image\image.jpg).if i submit this hidden variable to server i cannot get the file but i will get only the path info.but i know if i use <input type=file> then i can upload this image without any problem.so please go through this code and send me what all the necessary changes i have to make
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<P>Please Enter the Number of image you are going to submit
<form name="frm">
<INPUT id=text1 name=text1>   <INPUT id=Submit type=button value=Submit name=Click onclick='fun_app()'>
</form>
</BODY>
</HTML>
<SCRIPT LANGUAGE=javascript>
<!--
function fun_app()
     document.write("<html>");
     document.write("<body>");
     document.write("<form name='frm1' method='post' enctype='multipart/form-data'>");
          for(var i=1;i<=val;i++)
               //     alert('<applet code="ImageUploadControl.class" archive="test.jar" width="400" height="430" viewAsText id=Applet'+i+'> <param name="imginit" value="DSC00983.JPG"></applet>');
                    document.write('<applet code="ImageUploadControl.class" archive="test.jar" width="445" height="430" viewAsText name=Applet'+i+'> <param name="imginit" value="sos-logo-xsmall.jpg"></applet>');
                    document.write("      ");
     document.write("<input type='hidden' name='hidPath' value=''>");
     document.write("<input type='button' name='btnSubmit' value='Submit' onclick='imgSubmit()'>");
     document.write("</form>");
     document.write("<SCRIPT LANGUAGE=javascript>");
     document.write("function imgSubmit()");
     document.write("{");
     document.write("var numApp=0;");
     for(var j=1;j<=val;j++)
          document.write("if(document.Applet"+j+".strPath()!='strNull')");
          document.write("{");
          document.write("if(document.frm1.hidPath.value=='')");
          document.write("document.frm1.hidPath.value=document.Applet"+j+".strPath();");
          document.write("else");
          document.write("{");
          document.write("document.frm1.hidPath.value=document.frm1.hidPath.value+'&&';");
          document.write("document.frm1.hidPath.value=document.frm1.hidPath.value+document.Applet"+j+".strPath();");
          document.write("}");
          document.write("}");
     document.write("document.frm1.action='https://blretd02/imageupload/upload/uploadim.aspx';");
     document.write("document.frm1.submit();");
     document.write("}");
     document.write("</SCRIPT>");
     document.write("</body>");
     document.write("</html>");
//-->
</SCRIPT>

Similar Messages

  • How to upload the image and diplay the image in the browser using jsp

    How to upload the image and diplay the image in the browser using jsp
    thanks
    shan

    i'll suggest looking for sample code or tutorial with a relevant query in google, which as far more time than us to answer this type of reccurent question

  • How to clear the image after NetStream.attachVideo(null)

    hello,every one.
    i got a problem.need your guys' help.
    i create a normal NetStream object,then i publish video from
    my webcam,meanwhile,i set a Video object to play that stream,when i
    use NetStream.attachVideo(null) to stop publish video,the image in
    video paused,but not clear up.i wanna the image to be clear up,how
    to do?
    thx for your help.
    var mycam:Camera=Camera.get()
    var nc:NetConnection=new NetConnection()
    nc.connect("rtmp:/testapp")
    var ns:NetStream=new NetStream(nc)
    ns.attachVideo(mycam)
    ns.publish("oo")
    var ns2:NetStream=new NetStream(nc)
    ns2.play("oo")
    livevideo.attachVideo(ns2)
    localvideo.attachVideo(mycam)

    Is your instrument constantly sending data to you or only when you request the data?  If it is on request only, then your buffer should be cleared each time you do a read (assuming you told the VISA Read to grab enough data).  If your instrument is constantly sending data, then you need a second loop that does nothing but read and parse the data coming in.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to save the image after converting it into 64RGB

    Hello every one,
    I am trying to save the output image of 64RGB on my computer. Is this possible? I had a go and could not do it. Can some one look at my code please. 
    Regards,
    Lazer
    Solved!
    Go to Solution.
    Attachments:
    Save 64 RGB image.vi ‏91 KB
    1800s.jpg ‏8 KB

    Have a look at the following:
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • How to store the images in KM using Code

    Hello,
    i retreived the images from KM using the following code.
    import com.sapportals.portal.prt.component.AbstractPortalComponent;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    import com.sapportals.portal.prt.component.IPortalComponentResponse;
    import com.sapportals.portal.prt.resource.IResource;
    public class ThumbnailTes extends AbstractPortalComponent {
         /* (non-Javadoc)
    @see com.sapportals.portal.prt.component.AbstractPortalComponent#doContent(com.sapportals.portal.prt.component.IPortalComponentRequest, com.sapportals.portal.prt.component.IPortalComponentResponse)
         public void doContent(IPortalComponentRequest request,IPortalComponentResponse response) {
    String path =request.getResource(IResource.IMAGE,"images/sap1.gif").getResourceInformation().getURL(request);
                   response.write("<img src = "path"/>");
    but i want to store the images in KM using code.Can anybody help me.
    acutally the image is my location(c:/images/sap1/jpg).i want to upload this image to KM using code.
    Can anybody help me how to do that?

    Hi Kasturi,
    > not accepting the points
    It worked on this and on one other thread, but this is still open: How to upload the image
    > want upload the images from the client side machine
    > to KM
    In the thread I just referred to, I already provided information about the HTMLB upload control. With this at hand, you'll get the file from the client to the server.
    At server side, get an ICollection instance where you want to store the file and create the corresponding resource. See https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/javadocs/nw04/sp12/knowledge management/com/sapportals/wcm/repository/icollection.html#createresource(java.lang.String,%20com.sapportals.wcm.repository.IPropertyMap,%20com.sapportals.wcm.util.content.IContent)
    Hope it helps
    Detlev

  • Need to Upload the image into XMII server from a desktop

    Hi,
    Can anyone let me know how to upload the image from my laptop on to the server which i should be using in my pages. I tried using Image Loader and Image Saver. But it lead me no where. Is there a detailed documentation for this ?
    Thanks for your help in Advance.
    Regards,
    Deepthi lakshmi.A.

    Hi Deepti,
    Could you give some details on what you are trying to achieve.
    Is this a use case scenario where images need to be uploaded by a handful of people using some web UI?
    or
    Is this a use case scenario where you wish to upload images from the harddrive of absolutely any user?
    The reason for my questions is as follows.
    If you wish to allow some high-level (technically savvy) users the ability to upload images to be shown in dynamic content for remainder of the public, you could, in theory, set up a network directory that xMII is able to see.  These High-Level users could drop their images in the folder and specify the path in a text box.
    You could go one step further and use Get Folder List action from within an Xacute transaction and display the list of images in this folder on a web UI.  Users could pick the image from the list and "Bob's your Uncle!".
    Hope this helps,
    Cheers,
    Jai.

  • How to upload an Image in the front end application

    Hi friends,
    I have a requirement in the sense, soon after i login into the application with the username and password....
    I will be having an file browse item, in which i need only to upload the images, soon after selecting the picture and if i give upload means, the picture has to populate immediately above the browse item in the front end itself......
    How to achieve it friends, i dont have idea in uploading the images in the front end itself......
    for example: suppose if i want my photo to keep in the front end Soon after i login into the application means, i will select my picture from the file browse item and immediately after giving upload button, i has to come above the browse field in the front end itself.........
    Inorder for getting the image in the front, whether i need to create a separate region where the image has to come soon after given the upload button....
    help me friends, how to achieve it from the scratch........
    Thanks
    Vel Rs

    Hi peter,
    Thanks for the detailed explanation, i have got an link for doing it and this is that
    http://www.dba-oracle.com/t_easy_html_db_file_browse_item.htm
    While referring that link i couldnt able to understand one thing peter, that is
    While creating the Upload button, in the 7th point in the link it is mentioned like
    On the Branching page enter &APP_PAGE_ID. for the Branch to Page field and click Create Button.  Remember the ending period!i couldnt understand what he is trying to say over there......Can you explain that point by going through that link clearly...Whether he is asking me to create what....
    Thanks
    Vel Rs

  • How to get the full image directory when i upload the image to web page???

    hai, how to get the full image directory when i upload the image to web page???
    here is the example:
    <form action="uploadfile.jsp" method="post">
    image<input type="file" name="image" />
    <input type="submit" value="submit"/>
    <%
    String s=request.getParameter("image");
    %>
    <%=s%>
    </form>
    i upload the image from C:\image\center.gif. i use request.getParameter just can get the image name like "center.gif". Can anybody help me how to get the full path name. Thanks a lot..

    There is no need to get the path. It is also fairly pointless as the server cannot access the client's local file system.
    Carefully read this article how you can upload files the right way: http://balusc.blogspot.com/2007/11/multipartfilter.html

  • How to customize the images before upload to KM

    hai everybody
    i want to know how to customize the images before uploading into KM.if anybody know reply.thanks in advance

    Hi Kasturi,
    in fact, you could implement a repository service reacting omn the creation of resources, checking if it's an image, and with an image editing API at hand, change the image to your needs; if you need it to be done automatically.
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • I am using adobe photoshop cs6. I am facing a problem. When i save any image as "save for web". After saving image it show cropped. An image show many parts of the image after saving the image. Please help me. Thanks in advance.

    I am using adobe photoshop cs6. I am facing a problem. When i save any image as "save for web". After saving image it show cropped. An image show many parts of the image after saving the image. Please help me. Thanks in advance.

    Just go back in photoshop and use the Slice Select tool, then just click and select the slice and hit delete - if you're not sure which one is the active slice just right click and find the one that has the Delete Slice option.
    It's possible you either added the slices by accident or if you received it from someone they just had the slices hidden. For the future, you can go to View > Show > Slices to display (or hide) slices.

  • FIgured out how to overlay an image. But now the image is cropped!!!

    OK, so I have a person speaking and want to go to an image as he speaks. I figured out how to do it with an overlay, but now the image is cropped. I want it to show the whole thing, with bars for the side if it doesn't fit perfectly.
    I think this can be done easily if the image is plopped in. But as an overlay, I can't figure out what to do. I go to project properties and tried all different options, such as "crop", "full size", "ken burns", but it doesn't make any difference. It always displays exactly the same, with the top and bottom cut off.
    Help!!!

    The path to open the Library window is now Bookmarks > Show All Bookmarks. That was changed several versions ago, maybe in Firefox 4?
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • How to upload an image in jsp page

    hi,
    I want to upload an image file with my jsp page, but i cannot do it,
    I have used Jakarta common file upload for this & i have also read following file. But my code isnot working properly? Can you give me any example how to upload an image & how to display it?
    Can u give me any source code? Please help me.
    http://jakarta.apache.org/commons/fileupload/using.htmlwith regards
    Bina

    Hi,
    But after writing the following code i have got following error? What's the problem of this code? please help me?
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    <%@ page import="org.apache.commons.fileupload.*" %>
    <%@ page import ="java.util.*" %>
    <%@ page import ="java.io.*" %>
    </head>
    <body>
    <%
    boolean isMultipart = FileUpload.isMultipartContent(request);
    DiskFileUpload upload = new DiskFileUpload();
    List items = upload.parseRequest(request);
    Iterator iter = items.iterator();
    while (iter.hasNext()) {
    FileItem item = (FileItem) iter.next();
    if (item.isFormField()) {
    String name = item.getFieldName();
    String value = item.getString();
    //ring name= request.getParameter("")
    %>
    <%= name %>:<%= value %>
    <%
    } else {
    %>
    <%
    InputStream stream = item.getInputStream();
    OutputStream bos =
         new FileOutputStream(getServletContext().getRealPath("/images"+"/"+ item.getName()));
    int bytesRead = 0;
    byte[] buffer = new byte[8192];
    while ((bytesRead = stream.read(buffer, 0, 8192)) != -1) {
    bos.write(buffer, 0, bytesRead);
    bos.close();
    stream.close();
    item.delete();
    %>
    </body>
    </html>Error is:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileUpload cannot be resolved
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    DiskFileUpload cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    DiskFileUpload cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileItem cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileItem cannot be resolved to a type
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileUpload cannot be resolved
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    DiskFileUpload cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    DiskFileUpload cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileItem cannot be resolved to a type
    An error occurred at line: 13 in the jsp file: /uploadfileC.jsp
    Generated servlet error:
    FileItem cannot be resolved to a type
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)Please help me.
    With regards
    Bina

  • HOW TO UPLOAD BACKGROUND IMAGES IN SMARTFORMS

    HI
    HOW TO UPLOAD BACKGROUND IMAGES IN SMARTFORMS

    Hi, 
       goto se78 -> in the menubar click graphic  and import to select ur images from ur system .. then click transport button .. it automatically gets into the smartform graphic image list.. then get into transaction smartform and use the image u imported into that..
    U can import anykind  of image which u have stored in ur pc through se78..
    Regards,
    Priya.

  • How to upload a image or flash file as blob object in a table.

    How to upload a image or flash file as blob object in a table.
    What are all the possible ways we can do it.

    Searching the forum (or google) would be my first choice, as this question pops up every now and then.
    Next without knowledge of your environment (jdev version and technology stack) it's hard to give a profound answer.
    All I can say is that it's possible.
    Timo

  • How to get the image stored in archieve link as an attachment in work item.

    Hi All,
    through transaction OAWD we are storing scanned images.
    Once this transaction is executed a workitem appears in the inbox of the initiator with the scanned invoice as attachment.
    When the user executes the work item FV60 screen is displayed where the user enters the data based on the scanned invoice attachment.
    After the user Parks the document the custom workflow triggers and a workitem appears in the inbox of an approver.
    Our requirement is that the scanned image should also appear as the attachment.
    Can you please suggest how to get the image stored in archieve link as an attachment in work item.
    Regards
    Shraddha

    Hi Martin,
    with every parked document a scanned image is linked.
    I need to create a link under objects and attachments in the work item, such that when the user clicks that link the image is displayed.
    At present the following functionality is available.
    The BO used is FIPP
    Objects and attachments:
    parkeddocument:AK0108500001252008.(via FIPP binding with WIOBJECT_ID)
    On clicking the link below objects and attachments: the parked document AK0108500001252008 opens in display mode.
    Now we want to have 2 links:
    parkeddocument:AK0108500001252008.
    image.
    When we click on the link image then the scanned invoice linked to the document should get opened.
    I am able to get the image id of the the image through  SAP_WAPI_GET__OBJECTS,
    export parameter leading_object provides the detail.
    But I am not able to figure out how to use it in my workflow to display it as an attachment.
    Hope this will give a better understanding of my question.
    can you please suggest as to how I should proceed with it.

Maybe you are looking for

  • Pages 5 and comments

    I stepped into the Cloud and like it so far. I take photos with my iPhone which I can easily drop into my iCloud document, only to continue typing on my MacBook. What's good about comments is that they stick to your pictures. So I can easily rearrang

  • TableView is shifted up under status bar?

    Ok, simple newbie question. I tried searching, but either get results which have nothing to do with the issue, or nothing. So, here goes.... I created new TableViewController, and added a search bar to the top in InterfaceBuilder/XCode 4.2. Now when

  • Oscilliscope data sent to plot

    I have a system configured with data coming from a tektronics scope in a series of data points (dbl). I want to plot these on some sort of graph in real time. The problem comes with the fact that I want to have the data be shown with say, a red line

  • IGES or VDA-FS import/export from DIADEM to/from CATIA

    We need to import/export data in either IGES or VDA-FS file format with DIADEM to/from CATIA. The data is a three dimensional array of coordinates representing the contour of a automotive seat. Does anyone know where to get or have such a file filter

  • The repository TESTDS1 cannot be found

    Hi, We have copied every thing from one repository to  TESTDS1. This repo is there and we are able to login to this repo using SOAP UI. But we are getting below error when we try to call the Import_Repo_Object   <?xml version="1.0" encoding="utf-8" ?