MultipartParser vs MultipartRequest for Image Upload

We are facing a weird issue. We were using MultipartParser for all our file uploads till now. We now need to upload image files and we are facing issues. We came across various knowledge base articles that said we can't upload an image using MultipartParser.
If that is true, has anyone used MultipartRequest and have got the image uploaded to the server?
Once the image is uploaded we need to create a thumbnail out of it. We are using javax.imageio.* package to do that.
Any help is appreciated.

If that is true, has anyone used MultipartRequest and
have got the image uploaded to the server?
Unless you're using Creator 2004Q2, you should take a look at the file upload component included with Creator 2.
Best regards.
Antonio.

Similar Messages

  • This is my Jsp code for image upload in database:

    This is my Jsp code for image upload in database:
    -----------Upload.jsp----------------
    <html>
    <head>
    </head>
    <body bgproperties="fixed" bgcolor="#CCFFFF">
    <form method="POST" action="UploadPicture.jsp" enctype="multiform/form-data">
    <%! int update=0; %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.text.*" %>
    <%@ page import="java.sql.Date" %>
    <%@ page import="java.io.*"%>
    <%@ page language = "java" %>
    <%
    try
    String ct="3";
    String path;
    File image=new File(request.getParameter("upload"));
    path=request.getParameter("upload");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:itPlusElectronics","","");
    PreparedStatement pstmt=con.prepareStatement("insert into graphics values(?,?,?)");
    pstmt.setString(2,path);
    pstmt.setString(3,ct);
    InputStream is=new FileInputStream(path);
    pstmt.setBinaryStream(1, is, (int)(image.length()));
    int s=pstmt.executeUpdate();
    if(s>0)
    out.println("Uploaded");
    else
    %>
    unsucessfull
    <%}
    is.close();
    pstmt.close();
    catch(Exception e)
    }%>
    </p>
    <p><br>
    <img src="UploadedPicture.jsp">image</img>
    <p></p>
    </form>
    </body>
    </html>
    My database name is itPlusElectronics and the table name is "graphics".
    I have seen as a result of the above code that the image is stored in database as "Long binary data". and database table is look like as follows-------
    picture path id
    Long binary data D:\AMRIT\1-1-Picture.jpg 3
    To retrive and display i use this JSP code as--
    ------------------------UploadedPicture.jsp------------------------------
    <html>
    <head>
    </head>
    <body bgproperties="fixed" bgcolor="#CCFFFF">
    <%! int update=0; %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.text.*" %>
    <%@ page import="java.io.*"%>
    <%@ page language = "java" %>
    <%@page import="javax.servlet.ServletOutputStream"%>
    <%
    try
    String path;
    path=request.getParameter("upload1");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:itPlusElectronics","","");
    PreparedStatement pst = con.prepareStatement("SELECT * FROM graphics WHERE id ='3'");
    // pst.setString(3, id);
    ResultSet rs = pst.executeQuery();
    path=rs.getString("path");
    if(rs.next()) {
    byte[] bytearray = new byte[4096];
    int size=0;
    InputStream sImage;
    sImage = rs.getBinaryStream(1);
    response.reset();
    response.setContentType("image/jpeg");
    response.addHeader("Content-Disposition","filename=path");
    while((size=sImage.read(bytearray))!= -1 )
    response.getOutputStream().write(bytearray,0,size) ;
    response.flushBuffer();
    sImage.close();
    rs.close();
    catch(Exception e)
    %>
    </body>
    </html>
    Now after browsing a jpg image file from client side and pressing submit button ;
    I am unable display the image in the Upload.jsp file.Though I use
    <img src="UploadedPicture.jsp">image</img> HTML code in Upload.jsp
    file .
    Now I am unable to find out the mistakes which is needed for displaying the picture in the Upload.jsp page..
    If any one can help with the proper jsp code to retrive and display the image ,please please help me !!!!!!!!!!!!!!!!!!!!!!!!!!

    dketcham wrote:
    cotton.m wrote:
    >
    2) I'm looking at how you called stuff, and you're trying to call the jsp file as an image? That jsp isn't the source of the image, just a page linking to an image. I think if you really want to do things that way you're going to need to just include that jsp within the jsp you're calling it from (or you can do it the easy way, and if you have the information to get the path of the image you want, you could simply call the image from the first jsp you posted)This is incorrect.
    There are two JSPs. The second when called will (if it worked) return the source of an image as stored in the database.even when called with <img src=xx.jsp>??
    Yes.
    If any of what I say next seems obvious or otherwise negative I apologize, just trying to explain and I don't know what you know vs what you don't.
    The link in the src is just a URL not a filetype. So just because it ends with JSP does not mean it has to return HTML. The content type is determined by the browser using the Content-Type header returned by the server in the HTTP response. In this case the header is set to be a jpeg so that's what the browser will attempt to interpret the content part of the response as.
    So in fact one is not limited to just HTML or images but whatever content type you would like to return (that the browser can understand anyway). This could be HTML or it could be an image of some type or it could be a PDF or it could be an Excel spreadsheet. All you have to do in the JSP is set the header appropriately and then send content that is actually in that format.
    This does not just apply to JSP by the way but all other web programming languages. You can do similar things to produce the same results in PHP, Perl, ASP etc.
    The only JSP/Servlet complication is whether or not doing this in a JSP is a "good" idea but I am not an expert enough at that to make a definitive statement. Mostly though JDBC in a JSP is a no-no.

  • Max Size for Image Upload

    Hi Frenz,
    I am planning to use Oracle AppEx's file upload functionality to upload image to DB. I would like to know
    Is there any size limitation for Image to be uploaded. Ex: can't exceed more that ! MB?
    Does it support all types of Image format like JPG, BMP.
    Will be Using a third party reporting tool to generate roprts.
    So need to know how fast is the retrival process from backend.
    (Am aware this is not a Oracle AppEx related question!! But incase if any use this in your projects !!)

    The following parameters should be used
    org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY
    org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE
    Instead of
    oracle.adf.view.faces.UPLOAD_MAX_MEMORY
    oracle.adf.view.faces.UPLOAD_MAX_DISK_SPACE
    Please check the following post:
    ADF file upload size
    Thanks,
    Navaneeth

  • Multiple insert transaction for image uploads

    Hello !
    I can't figure it out how to connect multiple insert transactions on one page?
    For example - I want to upload images from page with different categories(have menu list) and insert by the one button all the images at once.
    image 1, cat 1
    image 2, cat 2
    image 3, cat 3
    button to insert
    Any Ideas? Where to start from?
    Thanks, Nick.
    Please help ! Maybe link for some tutorials?

    Hi Nick,
    What you are asking for is very possible to make with ADDT but if you are totally unfamiliar with ADDT you should probably go over the manual to go over the many functions that ADDT offers. You can find the manual two ways.
    1. After you have created your site and created one blank page you can open the page to have the Developer Toolbox Tab un-greyed out. Then you can click on the last icon (Control Panel) and press the help button.
    That will open up the manual.
    2. Go to: http://help.adobe.com/en_US/Dreamweaver/10.0_ADDT/help.html?content=MXK3_052000_MX_K3_con trol_panel.htm
    Same place the help button takes you.
    Yes, Waleed is having hosting issues that I think he is sorting out.

  • Using Resource type in Netweaver 7.1 for file upload

    Dear All,
    I want to check the file extension and file size before uploading it through a file upload UI element in Web Dynpro 7.1.
    How to go about it? And I am using following code for image upload. Is it correct one?
    IWDResource photoData = wdContext.nodePhotos().getPhotosElementAt(i).getPhotoData();
    FtpURLConnection myConnection = new FtpURLConnection(myUrl);          
    myConnection.connect();                    
    OutputStream out = myConnection.getOutputStream();               
    int temp = 0;
    InputStream text = photoData.read(false);
    while((temp=text.read())!=-1)
            out.write(temp);
    out.flush();
    out.close();
    myConnection.close();               
    Kindly help.
    Regards,
    Amey Mogare

    Did you check [this|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71] one?
    Bala

  • Image upload directory or server

    I want to upload imges file into directory and want to use
    for Database. I could not get any option in the Form of Dreamweaver
    for image uploading.
    please help me

    Dreamweaver does not come with any file upload scripts. You
    need to either create the script yourself or locate one on the web
    appropriate for the scripting language you are using.

  • Image upload

    Hi Experts,
      I have a reqiurement that to upload only the jpg,pnf and gif image file. Then I have to pass the url to backend..
    can anyone pls explain me with code..
    regrds
    Kiruba

    Hi Raghu,
    As u already reply that, I have to creat the resource for image upload..(jpg,gif,pnf) But Wht I have done was,I have not binded the resource property.suppose when i bind that, the details of my uploaded file has not displayed. Here I have attached my code.
    File ff=new File("New file");
              ff.mkdir();
              try {
                        byte[] b=null;
                        IWDAttributeInfo att=null;
                        IWDModifiableBinaryType bintype=null;
                        File f=null;
                        FileOutputStream fos=null;
                      IWDResource resource=wdContext.currentContextElement().getPhotores();
                        if(wdContext.currentContextElement().getResource()!=null){
                             b=wdContext.currentContextElement().getResource();
                             att=wdContext.getNodeInfo().getAttribute(IPrivateUploadView.IContextElement.RESOURCE);
                             bintype=(IWDModifiableBinaryType)att.getModifiableSimpleType();
                             wdContext.currentContextElement().setFileExtension(bintype.getMimeType().getFileExtension());
                             wdContext.currentContextElement().setFileSize(this.getFileSize(b));
                          wdContext.currentContextElement().setDetailsVisiblity(WDVisibility.VISIBLE);
                        wdComponentAPI.getMessageManager().reportMessage(IMessagePhUpload.UPLOAD,new Object[]{bintype.getFileName()},false);
                             f=new File(""+bintype.getFileName());
                                      fos=new FileOutputStream(f);
                             fos.write(b);
                             fos.flush();
                             fos.close();
                   else{
                        wdContext.currentContextElement().setDetailsVisiblity(WDVisibility.NONE);
                                  wdComponentAPI.getMessageManager().reportContextAttributeMessage(wdContext.currentContextElement(),wdContext.getNodeInfo().getAttribute(IPrivateUploadView.IContextElement.RESOURCE),IMessagePhUpload.NOFILE,new Object[]{""},true);
              } catch (FileNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    where I have to write the code for filtering the images..(jpg,pnf,gif)
    reg
    kiruba

  • Image upload in mysql Databse is working fine of IE bt not in Firefox?

    i hav developed an application of image upload in mysql database,it is working good in Internet Explorer but showing exception of " java.io.FileNotFoundException: (The system cannot find the file specified)" in Mozilla Firefox.
    i'm sending my java servlet code here ,please help me out.
    * uploadData.java
    * Created on July 17, 2008, 12:11 PM
    import java.io.*;
    import java.sql.*;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.PreparedStatement;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.sql.rowset.serial.SerialBlob;
    public class uploadData extends HttpServlet {
    String mysql_driver = null;
    String mysql_url=null;
    String mysql_pwd=null;
    ServletConfig servletConfig;
    Connection con=null;
    ResultSet rs=null;
    PreparedStatement pstmt=null;
    FileInputStream fis=null;
    String currentYear;
    String nextYear;
    String letterNo;
    String currentAmount;
    String actualExpenditure;
    String fp;
    public void init(ServletConfig config) throws ServletException {
    servletConfig = config;
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    ServletContext context= servletConfig.getServletContext();
    fp=request.getParameter("uploadfile");
    currentYear=request.getParameter("currentYear");
    nextYear=request.getParameter("nextYear");
    letterNo=request.getParameter("letterNo");
    currentAmount=request.getParameter("currentAmount");
    actualExpenditure=request.getParameter("actualExpenditure");
    HttpSession session=request.getSession();
    String userName = (String) session.getAttribute("User");
    String institute = (String) session.getAttribute("inst");
    mysql_driver =context.getInitParameter("jdbcdriver");
    mysql_url=context.getInitParameter("jdbcurl");
    mysql_pwd=context.getInitParameter("password");
    mysql_url=mysql_url + "&" + mysql_pwd;
    try {
    fis=new FileInputStream(fp);
    byte b[]=new byte[fis.available()];
    fis.read(b);
    fis.close();
    Blob blob=new SerialBlob(b);
    Class.forName(mysql_driver).newInstance();
    con=DriverManager.getConnection(mysql_url);
    String query="insert into uploads (FILENAME,BINARYFILE,user_id,nameOrganization,currentYear,nextYear,letterNo,currentAmount,actualExpenditure) values (?,?,?,?,?,?,?,?,?)";
    pstmt=con.prepareStatement(query);
    pstmt.setString(1,fp);
    pstmt.setBlob(2,blob);
    pstmt.setString(3,userName);
    pstmt.setString(4,institute);
    pstmt.setString(5,currentYear);
    pstmt.setString(6,nextYear);
    pstmt.setString(7,letterNo);
    pstmt.setString(8,currentAmount);
    pstmt.setString(9,actualExpenditure);
    out.print("-----------"+query);
    //pstmt.executeUpdate();
    int i=pstmt.executeUpdate();
    if(i>0)
    out.println("Image Stored in the Database");
    else
    out.println("Failed");
    } catch (Exception ex) {
    out.print("*******************"+ex);
    ex.printStackTrace();
    out.close();
    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
    /** Handles the HTTP <code>GET</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    /** Handles the HTTP <code>POST</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    /** Returns a short description of the servlet.
    public String getServletInfo() {
    return "Short description";
    // </editor-fold>
    in variable " fp " in IE it is showing complete path of image but in firefox only name of image.
    please help me.......
    Thanks in Advance.

    thanks for your help,
    i had also tried this application by taking help from javazoom.upload, using multipart request,
    but that is was working fine,but the problem with that was i not only hav to upload a file in the same page i also have to save other textbox value (parameters).
    i have used 2-3 solutions to upload but the main prblm coming in my way is to save other information apart from uploaded file.
    with that MultipartRequest i'm unable to save all those information  to mysql database.
    thats why i used this way.
    Note give me hint so that solution can work on both Explorer.
    one more thing please tell me ,will this work on remote server ,as our site is hosted from other place ,we do't hav permission to access (in case of absolute path).
    please help me out............where i'm going wrong.
    thankx

  • Js-error while executing Multiple Image Upload wizard

    If i want to save the configured window of Multiple Image Upload with Save to Database wizard i get this js-error: "While executing onClick in MIUploadWSaveWizard.htm, a JavaScript error occured".
    can someone help?
    thanx
    peter

    That again would be more of a question for the Cold Fusion group.
    Try http://forums.adobe.com/community/coldfusion/coldfusion_administration
    Those people will be able to help you out more.
    Brad Lawryk
    Adobe Community Expert, Dreamweaver
    Adobe Usergroup Manager, Northern British Columbia Adobe User Group

  • GoPro Camera Raw Lens Profile settings not working for image sequence in Photoshop/AE/Premiere CS6

    Hey Everyone,
    I'm in need of assistance in either Photoshop CS6, After Effects CS6, or Premiere Pro CS6.  I just installed the trials after seeing Russell Brown demo the GoPro Lens Profile correction feature in Camera Raw.  Basically what I'm looking to do is make adjustments (in Adobe Camera Raw) to a series of still images (shot with the time-lapse mode on the GoPro) and then either export those stills through Photoshop or Bridge to a temporary movie file that will be imported into a timeline (with other video clips), or import the JPG files (with Camera Raw settings) directly into After Effects or Premiere as an image sequence.  The latter would be preferable as it'd avoid the extra step of having to render the intermediate/temporary movie file.
    Right now, my current workflow for GoPro time-lapses is:
              - use Bridge CS4 to do basic color correction on the still images
              - save those as TIF files
              - run the TIF files through a custom script to have Hugin 2012.0.0 (open source pano stitcher) remove the fisheye distortion
              - open the new TIF image sequence into QuickTime Player 7 (Pro)
              - export the image sequence as a QuickTime movie file
              - import the movie file into Premiere Elements 10 to place on a timeline with other video clips (as Premiere Elements can't handle the sequence(s) of thousands of still images without crashing)
    If I can go directly from Bridge to a timeline, it'd save a lot of processing time (and it'd be much nicer to preview the images in Bridge without the fisheye distortion)!
    I can prepare the GoPro JPG files through Adobe Camera Raw in Bridge CS6, though when I go to import the JPEG image sequence into Premiere Pro CS6 or After Effects CS6, none of the Camera Raw settings are applied.  If I export the Camera Raw files in Bridge CS6 as DNG files (a step I'd really prefer to avoid) and then import the DNG image sequence into After Effects CS6, the Camera Raw settings are applied except for the Lens Profile settings -- I can pick other cameras but not the GoPro lens profiles when the DNG image sequence loads in After Effects.  It also appears that once I open the DNG files in After Effects CS6, I can no longer access the GoPro Lens Profile in Adobe Bridge CS6 -- the list changes to the same list I get in After Effects.  Premiere Pro CS6 doesn't let me import the DNG files at all.  I've also tried to import the JPG files (as well as the converted DNG files) into an image sequence in Photoshop CS6, though it doesn't allow me to do so (the Image Sequence checkbox is grayed out after I apply the Camera Raw settings in Bridge).
    There could be an issue going on with different Camera Raw versions.  I didn't have Premiere Pro CS6 installed during my initial testing, though now do notice that the Camera Raw dialog in Bridge CS6 only lets me choose compatibility up to "Camera Raw 7.1 and later" when I choose to export the files as DNG.  I thought Camera Raw 8.2 was an option there a couple days ago when I only had installed Photoshop CS6 and After Effects CS6 (though am not 100% certain).
    Please let me know if there is some workaround to get the GoPro lens profile Camera Raw corrections applied in an image sequence in one of the Adobe CS6 products (without having to export the files as temporary TIF or JPG files out of Camera Raw).  I'd greatly prefer to shorten my current workflow for these files.  (I just updated the CS6 trials and have tested all three programs again though I still get the same results described above.)
    Does Lightroom 5 have any option to export Camera Raw image sequences as movie files (or any other feature that might help in simplifying my current workflow)?  I can't install the trial right now as it's not compatible with OS X 10.6.8.  I'd consider upgrading OS X if I knew Lightroom 5 would do what I need, though am waiting for any potential color profile issues to be resolved in OS X 10.9.
    I can open the image sequence in Photoshop CS6 if no Camera Raw settings are applied and then use the Lens Correction Filter to apply the GoPro Lens Profile settings, though I really prefer the Camera Raw interface in Bridge for tweaking image settings.  As soon as I apply Camera Raw settings to the first image, Photoshop CS6 grays out the image sequence checkbox.
    If there isn't a way to take Camera Raw files straight from Adobe Bridge to a timeline, I may stick with my current workflow using CS4 and see what I can do to better automate some of the steps as the TIF export in Bridge, fisheye distortion removal in Hugin, and render in QuickTime Player all take quite a while.  I won't mind waiting for all the processing if I can set it and check back on it in later the next day when it's fully complete.  Is there a way to have Adobe ExtendScript execute an external shell command (i.e.: a command I could type into the bash shell in Terminal in OS X)?  If not, is there a way to call/run an ExtendScript script from the command line and pass a parameter to it that my custom script could use?
    Thanks in advance,
    Mark

    Can you zip up a few of your GoPro images, upload them to dropbox.com and post a share link, here, so others can experiment with them, or do you mean this issue is global to all camera models?

  • Multiple Image Uploading Question

    Please forgive my ignorance here but I saw the question on multiple image uploading and this is something i have been trying to do for a few days now without any success.
    I am using CS3 with ADDT and PHP
    I want to allow my users to be able to upload say 5 pictures at a time, each user has multiple photo albums the names of which are stored in mysql table, the image name is stored in a different table with a reference to the album id.
    So, I assume that i put an insert record on the page, I followed the usual process used to have a single image upload and thought it would give me or add the extra file field options on the form when telling the multi upload to allow 5 images to be uploaded, not the case. Do i have to create a form on the page first with 5 file fields or am i just missing the plot here.
    Sorry if this is just something that seems simple but i just don't seem to be able to get it to work at all. I have no working example to look over and have serach google to see if there are any tutorials for doing this but can't find any at all.
    Thank you in advance of any help and guidance given
    Regards
    Ray

    Hi Günter
    Thank you for your reply and also for the great tutorial site you run which has helped me quite a lot with several things.
    ok, so i am maybe a little confused here, so what is the multiple image uploader for if not for uploading multiple images, and how does it give you the option to select more than one file or is it that you can't use it when inserting the image file into a database?
    Please forgive my ignornace again, i can see when i have tried using the multiple image upload thatit puts a text link called upload, what is that for because it doesn't seem to do anything on the page i have tried it on?
    Kind Regards
    Ray

  • Image upload/retrieve turorial not working

    The tutorial regarding image upload retrieval in the following link is not working:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/2/retrieve_binary_data.html
    I get the following error:
    Java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.security.PrivilegedActionException : Error opening socket to server localhost on port 21527 with message : null
    Thanks

    Hi Sakthi,
    Finally I managed to make it work with the following modifications:
    (1) In the servlet jdbc/Order> jdbc/Travel
    (2) The datasource names for the rowsets in the session as Travel (instead of Order)
    Another observation I made is: If you bind the url of the image component (which is on the datatable column) to a (for example applicationbean) property which retruns the necessary url, it is very convinent to handle the datatable layout visually. (Otherwise if you go to the datatable layout it shows some error message popup)
    Thanks.

  • Can you move a 'Multiple Image Upload' button  into the 'Update Form'?

    I am able to creat and an Update form and an image upload using the "Update Form Wizard" tool and the "Multiple Image Upload" tool succesfully.
    <br />
    <br />The problem comes when I try to move the "UPLOAD" button inside the Update form. Right now it looks like this:
    <br />http://www.webritesolutions.com/Test/upload/now.JPG
    <br />
    <br />This is how I would like it to show:
    <br />http://www.webritesolutions.com/Test/upload/tryingto.JPG
    <br />
    <br />I want to "Upload" button to go next to the "Update record" button. When I do this I get a javascript error and the "Update record" button is disabled.
    <br />Here is the code of what I tried to do:
    <br />
    <br />
    <br />
    <br />
    <br />
    <table>
    <tr class="KT_buttons">
    <td>
    <?php<br />        // Multiple Upload Helper<br /> echo $muploadHelper->Execute();<br /> ?>
    </td>
    <td colspan="1">
    <input type="submit" name="KT_Update1" id="KT_Update1" value="Update record" />
    <br /></td>
    </tr>
    </table>
    <br />
    <br />Here is the Javascript error:
    <br />http://www.webritesolutions.com/Test/upload/error.JPG
    <br />
    <br />thanks for your help.

    A control can only appear once in the visual tree. So you have to remove it from the Grid before you can add it to the DockPanel.
    This code will move the Border element from the Grid to the DockPanel when you click the button:
    Private Sub Button_Click(sender As Object, e As RoutedEventArgs)
    Dim border = CType(LayoutRoot.FindName("myborder"), Border)
    LayoutRoot.Children.Remove(border)
    contain.Children.Add(border)
    End Sub
    <StackPanel>
    <Grid x:Name="LayoutRoot">
    <Border x:Name="myborder" BorderBrush="Black" BorderThickness="2">
    <TextBlock>...</TextBlock>
    </Border>
    </Grid>
    <DockPanel x:Name="contain" Background="Yellow">
    <TextBlock>2</TextBlock>
    </DockPanel>
    <Button Click="Button_Click" Content="Move"/>
    </StackPanel>
    You can try it for yourself. But please post your code as formatted text and not as embedded images if you want anyone to be able to reproduce your issue and help you in the future.
    Please remember to close your threads by marking helpful posts as answer.

  • Multiple image upload CRASH!!! but works with simple image upload

    I'm getting MAD.
    I'm using php and GD
    While the simple image and re size works like a charm, the multiple image upload or the multiple file upload have a strange behavior.
    It opens the pop-up with flash, then eventually shows me files or thumbnails but when I try to up load I just wait and get the typical "system becoming unstable" flash error.
    As I can see the directory is always generated (I've tried also to put a static directory) but after stargin the upload the flash uploader just crashes and no result.
    Any help would be really appreciated

    Hi Fonzie,
    as the folder is getting created, the issue you´re having is not related to wrong folder permission - it´s something else...
    As I wrote before, che common upload and resize function works perfectly
    this one works perfectly, because it´s just one file to upload and to process, wheras doing that with multiple files might collide with some settings on your server
    So for sure it's not a simple issue as the max filesize
    Are you sure ? Did you check the current "max_upload_filesize" setting ? As long you don´t check it, you can´t know :-)
    As a general rule of thumb, it´s important to be aware of the fact that uploading & resizing images on the server might collide with several PHP settings -- and the more images you upload and resize in one swoop, the closer you´re getting to these limits respectively might even be exceeding them. The following "directives" are those which have an effect on whether your image/file upload & processing will work or not:
    - "max_upload_filesize" :: is sometimes set to just 8 MB on a shared hosting, sometimes 16 MB, sometimes more. This setting will affect the file upload procedure only
    - "set_time_limit" (e.g. 30 seconds) :: if the execution time of a script exceeds this limit for whatever reason, the server simply shuts it down without letting you (respectively the flash uploader) know it´s been shut down. This *might* be the reason why ADDT´s flash uploader hangs respectively returns that error message after some time, because it´s waiting for some response from the server which never comes.
    - "memory_limit" (e.g. 8 MB) :: this directive is a sort of "allocated server RAM" for your account, and it´s in particular the image resizing process which will grab more or less memory resources -- the higher the the resizing factor is, the more RAM is spent, and the more images are getting resized in one swoop, the worser it gets.
    However, all these PHP directives can be changed, and your host might even be so courteous to increase the currently defined values of those abovementioned directives for you -- and that´s what I´m suggesting at this point.
    Cheers
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Radio group with URL for image in a table

    I'm trying to display some text and an image for a radio group so the form looks like
    (*) text for item 1 {image for item 1}
    ( ) text for item 2 {image for item 2}
    ( ) text for item 3 {image for item 3}
    I've found these:
    Re: Is it possible to display an image instead of button in a radio group?
    How to show image in radio group ?
    It looks like all I have to do is create a LOV that looks like:
    SELECT {complex stuff that generates the text string, img tag, and URL for image}
      ,DB_PK
    FROM dynamic_view_for_lov -- public synonym
    But, my images are stored in a table.
    I have been able to create an IR using the "Column Format=BLOB" method.
    The SQL for the report looks like:
    select
      db_pk, display_text, image_len, image_clob
    from dynamic_view_for_lov -- public synonym
    And the Number/Date Format for the IMAGE_LEN column is:
    IMAGE:DYNAMIC_VIEW_FOR_LOV:IMAGE_BLOB:DB_PK::::::Inline:Download
    My question:  How do I create the URL for the img tag for the LOV?
    many thanks
    MK

    MikeKutz wrote:
    I think Homer Simpson said it best:  Doh!
    For the person in the future, you have to 'fake create' the Automated Row Fetch process.
    The get_blob_file_src gets all the information from that Process and the column name of the Item Type that is on the same page.
    I forgot where I read about that trick.
    Basically, you create the Automated Row Fetch process, then 'disable' it.
    Same thing with the required Item Type.  Create it as a "File Type", just to tell APEX that it comes from a Database Column,.... then change it to a 'hidden' type.
    You don't have to "fake' it if the application already contains the file upload item and ARF. The assumption is that the application will contain these components in order to maintain the BLOBs and you'll just reference the functional ones.

Maybe you are looking for

  • Flex 3 FB4 Migration Tip

    Thanks to the help of several Adobe members I was able to successfully import a styled (.css) Flex 3 project into Flash Builder 4 and have it retain its aesthetic and functional attributes. I wanted to take a moment and share what I found with everyo

  • Command used to know if Oracle is 64 bit or 32 bit in Unix

    What command would you use to tell if Oracle is 64 bit or 32 bit in Unix Systems.?? What command would you use to tell if Solaris running on 64 bit or 32 bit.?? Thnx Sravan

  • My 128gig ipad air is crackling at mid to high volume

    Just got the air on Friday at 8am. Watched three episodes of TV on it, ready to return it! The speaker is crackling horribly at mid to high volume levels.  Any ideas?  Never had a problem with my other 3 iPads.  I'm really dismayed. If yours has this

  • If I use Sys Update 4, will I have choices for ThkVan tool install?

    All, I own an X61t 7764CTO tablet and recently did a clean install of [retail]Win7 64-bit Pro. I'm really happy with the speedy boot times and overall snappy performance with this 4Gig machine. It was supplied with Vista Biz 32-bit in Aug 2008 and I

  • ORA-06550:  ERROR:(((((((((((

    I did an application which is in http://www.oracle.com/technology/oramag/oracle/06-mar/o26browser.html . when ı did it in oracle database 10g express edition , it run but ı must show it to another people so I request a workspace from apex and then I