FileReference.upload in JSP problem

Help !!!
We've succesfully implemented file upload via flash in jsp
tomcat (using FileReference.upload() in actionscript 2.0 ), but for
some reason, parameters posted in the url to the file upload
handling script (ej. "uploadScript.jsp?id=1") are lost, ie: the
id=1 is lost.
To double check flash correctly sending params , we've
implemented the same flash object in php and parameters are posted
fine.
Any Ideas, I'm desperate.
thanks.
cC

Therefore, can anyone tell me what have happened?The problem is in the scope. Request objects are local to jspService() method (Sorry, i forgot the name). So it's life is not long enough to be found in other pages. For your case, session is the perfect scope.
session.setAttribute() is the smartest. u can use pageContext.setAttribute method also. I do not have any idea about other solutions.
Hafizur Rahman
SCJP

Similar Messages

  • FileReference.upload() not working in Firefox

    Hi,
    i have a strange problem - my Flex application uses the FileReference.upload() to upload images to the server. ServerSideScript ist pure PHP.
    It is working in IE but not in FF
    Any help is really appreciated since i'm running out of ideas...
    <?php
    $target_path = "../xml/akten/dokumente/";
    $target_path = $target_path . basename( $_FILES['file']['name']);
    if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) {
        echo "The file ".  basename( $_FILES['file']['name']).
        " has been uploaded";
    } else{
        echo "There was an error uploading the file, please try again!";
    ?>
    Greetings from Germany
    Markus

    I am facing the same problem.
    Has anyone any solution on this.
    Thanks

  • Antivirus software breaks FileReference.upload() method...

    Hi there,
    I'm a Flash developer who's run into an interesting problem since upgrading to AVG 9 (free antivirus software).
    I use Flash to facilitate large uploads to websites (eg. video). I've built plently of upload widgets that use Flash's FileReference.upload() method to send a file from a users computer to a webserver.
    It seems that since upgrading to AVG 9, the bytesLoaded property of a ProgressEvent is being updated at warp speed - a 30mb file appears sent to a server in less than a second! Which is ridiculous. So in an instant, the bytesLoaded property equals the bytesTotal property. Seemingly an arbitrarily time later, the Event.COMPLETE event fires (I think this arbitrarial illusion is caused by the upload continuing in the background). If everything was running as it's supposed to, this should generally be followed by a DataEvent.UPLOAD_COMPLETE_DATA event firing. But now, because of all this weirdness, no DataEvent.UPLOAD_COMPLETE_DATA event is firing.
    After a bit of websurfing I found other developers having problems with this because of virus software - so I've uninstalled AVG and "voila!", Flash now works as it is supposed to when uploading a file again.
    I guess I could build a polling timer into my uploader to continually ping the server to check that my upload had complete and grab my upload complete data that way, but that'd be annoying as heck.
    Any ideas what's going on? This is kind of a massive problem, ProgressEvent returning bogus bytesLoaded data, isn't it?
    Kind regards,
    James.

    James Furey:
    I agree in disabling the LinkScanner. Open AVG User Interface, Dbl click on the LinkScanner and Untick the "Enable AVG Search-Shield" and the "Enable Active Surf-Shield" then SAVE the changes made.
    eidnolb
    Message was edited by: eidnolb

  • File upload in Mozilla problem

    Hi,
    I am using Flex with server side php script to upload a file
    from Flex to server and everything works fine when i use Internet
    Explorer but in Firefox i get the following "Error #2038: File I/O
    Error".
    I googled around and found out that there is a problem with
    Firefox handling sessions but couldn't find solution to this
    problem. Has anyone else came across this problem, what would be
    the solution to it?
    Here is my mxml code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init();">
    <mx:Script>
    <![CDATA[
    private var urlRequest:URLRequest;
    private var fileReferenceList:FileReferenceList;
    private var serverSideScript:String = "
    http://localhost/uploadFile.php";
    private function init():void {
    urlRequest = new URLRequest(serverSideScript);
    fileReferenceList = new FileReferenceList();
    fileReferenceList.addEventListener(Event.SELECT,
    fileSelectedHandler);
    private function uploadFile():void {
    fileReferenceList.browse();
    private function fileSelectedHandler(event:Event):void {
    var fileReference:FileReference;
    var fileReferenceList:FileReferenceList =
    FileReferenceList(event.target);
    var fileList:Array = fileReferenceList.fileList;
    // get the first file that the user chose
    fileReference = FileReference(fileList[0]);
    // upload the file to the server side script
    fileReference.addEventListener(Event.COMPLETE,
    uploadCompleteHandler);
    fileReference.upload(urlRequest);
    // update the status text
    statusText.text = "Uploading...";
    private function uploadCompleteHandler(event:Event):void {
    statusText.text = "File Uploaded: " + event.target.name;
    ]]>
    </mx:Script>
    <mx:Label text="Upload File From Flex to PHP"
    fontWeight="bold"/>
    <mx:Label text="Choose a file..." id="statusText"/>
    <mx:Button click="uploadFile();" label="Upload File"/>
    </mx:Application>
    And my php script:
    <?php
    $tempFile = $_FILES['Filedata']['tmp_name'];
    $fileName = $_FILES['Filedata']['name'];
    $fileSize = $_FILES['Filedata']['size'];
    move_uploaded_file($tempFile, "./" . $fileName);
    ?>

    Hi,
    I am using Flex with server side php script to upload a file
    from Flex to server and everything works fine when i use Internet
    Explorer but in Firefox i get the following "Error #2038: File I/O
    Error".
    I googled around and found out that there is a problem with
    Firefox handling sessions but couldn't find solution to this
    problem. Has anyone else came across this problem, what would be
    the solution to it?
    Here is my mxml code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init();">
    <mx:Script>
    <![CDATA[
    private var urlRequest:URLRequest;
    private var fileReferenceList:FileReferenceList;
    private var serverSideScript:String = "
    http://localhost/uploadFile.php";
    private function init():void {
    urlRequest = new URLRequest(serverSideScript);
    fileReferenceList = new FileReferenceList();
    fileReferenceList.addEventListener(Event.SELECT,
    fileSelectedHandler);
    private function uploadFile():void {
    fileReferenceList.browse();
    private function fileSelectedHandler(event:Event):void {
    var fileReference:FileReference;
    var fileReferenceList:FileReferenceList =
    FileReferenceList(event.target);
    var fileList:Array = fileReferenceList.fileList;
    // get the first file that the user chose
    fileReference = FileReference(fileList[0]);
    // upload the file to the server side script
    fileReference.addEventListener(Event.COMPLETE,
    uploadCompleteHandler);
    fileReference.upload(urlRequest);
    // update the status text
    statusText.text = "Uploading...";
    private function uploadCompleteHandler(event:Event):void {
    statusText.text = "File Uploaded: " + event.target.name;
    ]]>
    </mx:Script>
    <mx:Label text="Upload File From Flex to PHP"
    fontWeight="bold"/>
    <mx:Label text="Choose a file..." id="statusText"/>
    <mx:Button click="uploadFile();" label="Upload File"/>
    </mx:Application>
    And my php script:
    <?php
    $tempFile = $_FILES['Filedata']['tmp_name'];
    $fileName = $_FILES['Filedata']['name'];
    $fileSize = $_FILES['Filedata']['size'];
    move_uploaded_file($tempFile, "./" . $fileName);
    ?>

  • Filereference.upload ... works on localserver but not on webserver

    hello;
    I'm uploading images via filereference.upload ... works fine when testing on local machine with apache. once I port everything to my web-based server ( shared server with a webhosting company ), the upload fails.
    - do not get any errors such as SECURITY_ERROR , HTTP_STATUS , IO_ERROR
    - do get 1 PROGRESS event - only 1 - but it already shows 100%
    - do get COMPLETE event after a couple of seconds
    - do not get UPLOAD_COMPLETE_DATA, but do get it on localhost
    - do not get the image on the remote server
    - my local php is 5.2 ... webserver php is 4.4 ...
    - I have tried setting 757 as file permissions for image directory
    - all php, swf, image directories are in the same domain, though in different directories.
    - I have tried uploading the image to the same directory as php directory itself
    any thoughts?
    thanks,
    dsdsdsdsd

    not exactly what was not working, but my webhost updated my php module to php 5.2, and my uploader works.

  • Flex 3 - CF9 filereference.upload test

    Hi
    i run a filereference.upload test flex application which uploads a file through a coldfusion server.
    i’m using flex 3 and coldfusion 9.
    i’m also passing parameters in the URLRequest that points to the upload cfm file.
    when i run my test using the built-in web server (Jrun) all seems to work just fine
    when i run the same test on a coldfusion instance that runs on Apache web server, it throws a I/O Error…
    i suspect i’m missing some kind of a configuration i need to perform when moving to a production setup rather then a development environment…
    can anyone guide me through this?
    does it have to do with security? on the client? on the server?
    i’m still running on localhost…
    summery...
    attached are the mxml file and the cfm file
    works great on built-in server
    throws a I/O error when runs through Apache
    cheers

    If you want to test against another implementation, I wrote a Flex Upload component and CFML script a while back. I've used it regularly on IIS and Apache server (and my localhost) without having to modify the configuration at all. Speaking of the config, Daverns could be totally right ... and this post is not to refute or argue the point about Mod_Security; rather, its only meant as another options to test, since you were having trouble with it on the production server.
    The attached Zip archive contains three files: FileUpload.mxml, SampleUsage.mxml, and fileUpload.cfm. The files are heavily commented but feel free to ping me if you have any issues with it.
    Good luck!

  • FileReference.upload response is truncated on Mac

    I have flash as3 code that will upload a file to my server using FileReference.upload but when receiving the DataEvent.UPLOAD_COMPLETE_DATA event * on MAC only *, I find that event.data will get truncated after a certain number of bytes/characters (looks to be about 2400 Bytes). I know that my server is returning more data than this because I can see the raw response using an HTTP sniffer program. Is there a reason my response data is getting truncated on macs and is there anything I can do to avoid this truncation?
    My server side code is running on ASP.NET and IIS if that is relevant. The Content-Length HTTP Header value also appears to be set correctly. This looks to work on windows (firefox 3.6, chrome, and IE) but fails consistently on mac (firefox, chrome, safari).
    Any ideas?

    I have flash as3 code that will upload a file to my server using FileReference.upload but when receiving the DataEvent.UPLOAD_COMPLETE_DATA event * on MAC only *, I find that event.data will get truncated after a certain number of bytes/characters (looks to be about 2400 Bytes). I know that my server is returning more data than this because I can see the raw response using an HTTP sniffer program. Is there a reason my response data is getting truncated on macs and is there anything I can do to avoid this truncation?
    My server side code is running on ASP.NET and IIS if that is relevant. The Content-Length HTTP Header value also appears to be set correctly. This looks to work on windows (firefox 3.6, chrome, and IE) but fails consistently on mac (firefox, chrome, safari).
    Any ideas?

  • PO Upload through BAPI_PO_CREATE1 - Problem in limit

    Dear All,
    I am using BAPI_PO_CREATE1 for PO upload based on already created Limit based PR I am facing problem in Service account assignment.
    It gives me error "In case of Account assignment, please enter acc. assignmrnt data for item". Although I am supplying account assignment. Please tell me what is the reason of error. Is there any other way to link item with its limit details.
    How to pass the required data to the polimits structure. Kindly let me know
    PO Upload through BAPI_PO_CREATE1 - Problem in Service Item
    I have goen through the above link but its talking about service based PO, I need to create limit based PO.
    Any more info required kindly reply ,I will give... help me getting this....
    Thanks
    Uday

    Dear All,
    I am using BAPI_PO_CREATE1 for PO upload based on already created Limit based PR I am facing problem in Service account assignment.
    It gives me error "In case of Account assignment, please enter acc. assignmrnt data for item". Although I am supplying account assignment. Please tell me what is the reason of error. Is there any other way to link item with its limit details.
    How to pass the required data to the polimits structure. Kindly let me know
    PO Upload through BAPI_PO_CREATE1 - Problem in Service Item
    I have goen through the above link but its talking about service based PO, I need to create limit based PO.
    Any more info required kindly reply ,I will give... help me getting this....
    Thanks
    Uday

  • Upload file form problem in JSP portlet !!!

    Hi!
    I use "OrdHttpUploadFile" class for upload file in JSP portlet to database!
    Problem is that this class must use FORM ENCTYPE="multipart/form-data" whis I suppose dont work in portlet!?
    Which FORM ENCTYPE should I use in portlet! Or there is some other solution for upload file in JSP portlet!?
    Thanks!
    Kristjan

    Thanks for u r reply Mr.Prasad.
    Sorry for the delay for reply.
    My scenario is in 2 phases
    Phase 1. I am taking input from the front end using jsp and writing the contents in to a file and then downloading that file on to my desktop.(Now let us say this one as file downloading)
    Phase 2. Now I had designed a page,which locates the downloaded file by using the following tag.
                        <td><input type ="file" name ="xmlFileName"></td>
        In the downloaded xml file I am having applicationid. I am checking whether the application id already xists in the database (or)not.
    If already exists in the database , the end user will get one confirmation msg,saying application already exists in the database.
    If the user clicks ok again the request has to go to the servlet.
    Now the actual problems are
    1. When I locate the file on the desktop let us say c:\desktop\krish and click on submit button, it is locating to the file that is present in the server(this is the case for the first time means before checking the application id in the database).
    2. when the end user clicks "ok" on the confirmation box , I am not getting the file name,that has to be submitted to the servlet.
    Can u plz help me how to resolve this issue.
    regards,
    Krish

  • FileReference upload failure

    Hi, I got a FileRefrence instance for a simple upload and it did work for some time in the past, but now I just can't discover what made it stop woking. Can anyone help me find it out? To simplify, I took only the necessary code (not working as the full version). Here are some details:
    1. I'm using Flash Player 9 (this can't change because it is a part of a bigger project). My current host machine is a Windows Vista one. The sandbox is set to network access.
    2. The FileReference calls a simple php script hosted at an Apache server (Linux). The script permissions are set to 644 (it works for file uploads coming from plain html pages) and I set the folder permission to 777 just to avoid any other source of errors. Here is the simple code for the php script:
    <?php
    // receiving variables
    $uid = trim($_POST['uid']); // just to check for a post variable that  I must send while uploading (won't work even if I revome it)
    // a file to check if the script is really called
    $myfile = fopen("upload.txt", "wb");
    fputs($myfile, "file upload for uid $uid\n");
    // receiving the file and saving it
    if ($_FILES['Filedata']['name'] != "") {
        $newName = preg_replace('/[^a-z0-9_\-\.]/i', "_", $_FILES['Filedata']['name']);
        $newName = preg_replace('[ \f\r\t\n]', "_", $newName);
        @move_uploaded_file($_FILES['Filedata']['tmp_name'], $newName);
        fputs($myfile, ("new received filename: " . $newName . "\n"));
    } else {
        fputs($myfile, ("no file received\n"));
    fclose($myfile);
    ?>
    This script writes a file named "upload.txt" so I know it was really called. If I run it directly from the browser, everything is ok.
    3. My AS3 code just starts the browsing for a file (I'm using a 500k mp3 to test). By following the program trace I see that the upload actually happens, but when it finishes, I get an IO error (I'm using the very same url address for the script that I use at the browser). When I check the server, I see that no "upload.txt" file is written, so the script was really not found. Here is some of the AS3 code I'm using:
    private var urlSend:URLRequest = new URLRequest("my address to the php script (http)");
    private var urlData:URLVariables = new URLVariables();   
    private var fileTansfer:FileReference = new FileReference();
    private function uploadFile():void { // call by a button click
         this.urlData.uid = "1";
         this.urlSend.method = URLRequestMethod.POST;
         this.urlSend.data = this.urlData;
         this.configureListeners(this.fileTansfer); // all listeners are correctly set
         this.fileTansfer.browse(new Array(new FileFilter("Audio files", "*.mp3")));
    // listeners set here
    private function selectHandler(event:Event):void {
         var file:FileReference = FileReference(event.target);
         trace("selectHandler: name=" + file.name + " URL=" + this.urlSend.url); // prints correclty
         file.upload(this.urlSend);
    As I said before, I get traces from progress handler and when it reaches the end, I get the IO error message:
    ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2038: Erro do arquivo de E/S. URL: (my correct url here)"]
    Just for checking I add a Loader instance and used its "load" method with the same "urlSend" variable. It worked and the php script generated the output file...
    Does anyone know what's happening? Could it be some permission problem? Why can't the FileReference find my script assuming its url is ok?
    Thank you in advance!

    How did you resolve the above error ? Thanks.

  • File upload with jsp

    I am trying to upload a file to a mysql database (using a jsp tomcat 4.1 container) for each new member of my website (typically a cv which is a .rtf word file). I have used the example on the oreilly page and have managed to get the image of the file I have uploaded. Now I am trying to save this into my database for each member so that they can enter all of their details on the one page i.e. name age etc and also a browse for file button which will store the path of their file on their computer. When they click the submit button, all of their details are then stored into the database by the resultant page which outputs wehter they have been successful or not.
    The upload bean code (from the oreilly site):
    package com.idhcitip;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.ServletInputStream;
    import java.util.Dictionary;
    import java.util.Hashtable;
    import java.io.PrintWriter;
    import java.io.BufferedWriter;
    import java.io.FileWriter;
    import java.io.IOException;
    public class FileUploadBean {
    private String savePath, filepath, filename, contentType;
    private Dictionary fields;
    public String getFilename() {
    return filename;
    public String getFilepath() {
    return filepath;
    public void setSavePath(String savePath) {
    this.savePath = savePath;
    public String getContentType() {
    return contentType;
    public String getFieldValue(String fieldName) {
    if (fields == null || fieldName == null)
    return null;
    return (String) fields.get(fieldName);
    private void setFilename(String s) {
    if (s==null)
    return;
    int pos = s.indexOf("filename=\"");
    if (pos != -1) {
    filepath = s.substring(pos+10, s.length()-1);
    // Windows browsers include the full path on the client
    // But Linux/Unix and Mac browsers only send the filename
    // test if this is from a Windows browser
    pos = filepath.lastIndexOf("\\");
    if (pos != -1)
    filename = filepath.substring(pos + 1);
    else
    filename = filepath;
    private void setContentType(String s) {
    if (s==null)
    return;
    int pos = s.indexOf(": ");
    if (pos != -1)
    contentType = s.substring(pos+2, s.length());
    public void doUpload(HttpServletRequest request) throws IOException {
    ServletInputStream in = request.getInputStream();
    byte[] line = new byte[128];
    int i = in.readLine(line, 0, 128);
    if (i < 3)
    return;
    int boundaryLength = i - 2;
    String boundary = new String(line, 0, boundaryLength); //-2 discards the newline character
    fields = new Hashtable();
    while (i != -1) {
    String newLine = new String(line, 0, i);
    if (newLine.startsWith("Content-Disposition: form-data; name=\"")) {
    if (newLine.indexOf("filename=\"") != -1) {
    setFilename(new String(line, 0, i-2));
    if (filename==null)
    return;
    //this is the file content
    i = in.readLine(line, 0, 128);
    setContentType(new String(line, 0, i-2));
    i = in.readLine(line, 0, 128);
    // blank line
    i = in.readLine(line, 0, 128);
    newLine = new String(line, 0, i);
    PrintWriter pw = new PrintWriter(new BufferedWriter(new
    FileWriter((savePath==null? "" : savePath) + filename)));
    while (i != -1 && !newLine.startsWith(boundary)) {
    // the problem is the last line of the file content
    // contains the new line character.
    // So, we need to check if the current line is
    // the last line.
    i = in.readLine(line, 0, 128);
    if ((i==boundaryLength+2 || i==boundaryLength+4) // + 4 is eof
    && (new String(line, 0, i).startsWith(boundary)))
    pw.print(newLine.substring(0, newLine.length()-2));
    else
    pw.print(newLine);
    newLine = new String(line, 0, i);
    pw.close();
    else {
    //this is a field
    // get the field name
    int pos = newLine.indexOf("name=\"");
    String fieldName = newLine.substring(pos+6, newLine.length()-3);
    //System.out.println("fieldName:" + fieldName);
    // blank line
    i = in.readLine(line, 0, 128);
    i = in.readLine(line, 0, 128);
    newLine = new String(line, 0, i);
    StringBuffer fieldValue = new StringBuffer(128);
    while (i != -1 && !newLine.startsWith(boundary)) {
    // The last line of the field
    // contains the new line character.
    // So, we need to check if the current line is
    // the last line.
    i = in.readLine(line, 0, 128);
    if ((i==boundaryLength+2 || i==boundaryLength+4) // + 4 is eof
    && (new String(line, 0, i).startsWith(boundary)))
    fieldValue.append(newLine.substring(0, newLine.length()-2));
    else
    fieldValue.append(newLine);
    newLine = new String(line, 0, i);
    //System.out.println("fieldValue:" + fieldValue.toString());
    fields.put(fieldName, fieldValue.toString());
    i = in.readLine(line, 0, 128);
    } // end while
    This works fine and I can access the image name of the file by using the commands in my jsp code(on the resultant page of the new member form):
    <%@ page import="java.sql.*, com.idhcitip.*"%>
    <jsp:useBean id="TheBean" scope="page" class="com.idhcitip.FileUploadBean" />
    <%
    TheBean.doUpload(request);
    out.println("Filename:" + TheBean.getFilename());
    So I am wondering how can I then store this image into a text blob in the database?
    I found some code on the java.sun forum, but am not entirely sure how I am meant to use it?
    package com.idhcitip;
    import java.sql.*;
    import java.io.*;
    class BlobTest {
    public static void main(String args[]) {
    try {
    //File to be created. Original file is duke.gif.
    //DriverManager.registerDriver( new org.gjt.mm.mysql.Driver());
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    String host="localhost";
    String user="root";
    String pass="";
    String db="idhcitip";
    String conn;
    // create connection string
    conn = "jdbc:mysql://" + host + "/" + db + "?user=" + user + "&password=" +
    pass;
    // pass database parameters to JDBC driver
    Connection Conn = DriverManager.getConnection(conn);
    // query statement
    Statement SQLStatement = Conn.createStatement();
    /*PreparedStatement pstmt = conn.prepareStatement("INSERT INTO BlobTest VALUES( ?, ? )" );
    pstmt.setString( 1, "photo1");
    File imageFile = new File("duke.gif");
    InputStream is = new FileInputStream(imageFile);
    pstmt.setBinaryStream( 2, is, (int)(imageFile.length()));
    pstmt.executeUpdate();
    PreparedStatement pstmt = Conn.prepareStatement("SELECT image FROM testblob WHERE Name = ?");
    pstmt.setString(1, args[0]);
    RandomAccessFile raf = new RandomAccessFile(args[0],"rw");
    ResultSet rs = pstmt.executeQuery();
    if(rs.next()) {
    Blob blob = rs.getBlob(1);
    int length = (int)blob.length();
    byte [] _blob = blob.getBytes(1, length);
    raf.write(_blob);
    System.out.println("Completed...");
    } catch(Exception e) {
    System.out.println(e);
    Once I have managed to store the file, I would just like people to be able to view each members profile and then to click on a link that will have their stored c.v.
    Thanks for a reply anyone

    You could do this one of two ways..
    using a prepaired statment, you could read in a byte array...
    String sql="INSERT INTO BlobTest VALUES( ? )";
    PreparedStatement ps=con.prepareStatement(sql);
    ps.setBytes(1, byte[]); //Your byte array buffer from your FileUploadBean
    ps.executeUpdate();or you could just use the input stream..
    String sql="INSERT INTO BlobTest VALUES( ? )";
    PreparedStatement ps=con.prepareStatement(sql);
    ps.setBinaryStream(1, InputStream, length); //You'll have to do some work to get length
    ps.executeUpdate();

  • Error in File uploading using jsp

    I am tring to upload files to a mysql database using jsp.I have used BLOB type to store files.Iam using the JDBC driver mysql-connector-java-2.0-14-bin to connect the database with the jsp API.My problem is when i try to transfer a file of size which is less than the possible capacity through blob ,which is 1048576 bytes ( for example when a file of size 916KB is attempted to transfer) the following error is being generated.
    java.lang.IllegalArgumentException: Packet is larger than max_allowed_packet from server configuration of 1048576 bytes
         at com.mysql.jdbc.Buffer.ensureCapacity(Unknown Source)
         at com.mysql.jdbc.Buffer.writeBytesNoNull(Unknown Source)
         at com.mysql.jdbc.PreparedStatement.executeUpdate(Unknown Source)
         at com.mysql.jdbc.PreparedStatement.executeUpdate(Unknown Source)
         at org.apache.jsp.file3$jsp._jspService(file3$jsp.java:110)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:484)
    java.lang.IllegalArgumentException: Packet is larger than max_allowed_packet from server configuration of 1048576 bytes
         at com.mysql.jdbc.Buffer.ensureCapacity(Unknown Source)
         at com.mysql.jdbc.Buffer.writeBytesNoNull(Unknown Source)
         at com.mysql.jdbc.PreparedStatement.executeUpdate(Unknown Source)
         at com.mysql.jdbc.PreparedStatement.executeUpdate(Unknown Source)
         at org.apache.jsp.file3$jsp._jspService(file3$jsp.java:110)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:484)
    My uploading code in jsp is as follows.
         <% try{
              Class.forName("org.gjt.mm.mysql.Driver").newInstance();
              Connection dbCon = DriverManager.getConnection("jdbc:mysql:///uoc");
              out.println("Connection done !");
              Statement stmt = dbCon.createStatement();
              out.println("Statement Created !");
    ResultSet rs = stmt.executeQuery("SELECT * FROM blob_test)
    stmt.close();
    dbCon.close();
    out.println("<br><br> <b>Data Successfully selected !<b>");
    } //try
    catch(SQLException e){
         out.println(" <br> ");
         out.println("Sorry ! problem in selecting a data "+e.toString());
         out.println(" <br> ");
                   e.printStackTrace();
    %>
    Please help .I thank You in advance for any help .

    Have you tried increasing the BLOB field greater than 1048576 or using a smaller file of say 1 or 2k as a test? There is no guarantee that the database will store the file with exactly the same size as the file on the filesystem, so the file might be more than 916k in the database.
    Using BLOBs is a great way to destroy the performance of your database by the way :)

  • Filereference Upload - A script in this movie is causing Adobe Flash...

    This appears to be a sore topic these days. I have searched and found a large number of postings with this flash player message (A script in this move is causing Adobe Flash Player -n- to run slowly. If it continues...) But I haven't found a posting where it is resolved. I am trying to provide my client with an upload script. What I have so far works on small files but results in the aforementioned error message on large files. I saw a message a few days ago that talked about writing an onEnterFrame routine in a dummy movie clip that increments a counter, but there were no details about what that code might look like.  I have tried several iterations of that logic to no avail.  I know I am not the only one with this problem, and I do need to find a solution. I don't think that the server php settings are the problem.  Does anyone have any ideas?
    Thanks in advance,
    GW
    Action script from Layer 1: Frame 1 -
    _global.states = Array("AL", "AK", "AS", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FM", "FL", "GA", "GU", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MH", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "MP", "OH", "OK", "OR", "PW", "PA", "PR", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VI", "VA", "WA", "WV", "WI", "WY");
    _global.states.sort();
    _global.keepMemory = false;
    this.mc_uploadCtr.mc_stateError._visible = false;
    this.mc_uploadCtr._visible = false;
    this.mc_uploadCtr.enabled = false;
    // Get upload data
    var xmlData=new XML();
    xmlData.ignoreWhite=true;
    xmlData.onLoad = function(ok:Boolean) {
       if (ok) {
           processXmlData(this);       
       } else {
           dt_main.text = "XML did not load";
    function processXmlData(xml:XML) {
        _global.notifyToEmail    = xml.firstChild.childNodes[0].childNodes[0].nodeValue;
        _global.notifyFromEmail = xml.firstChild.childNodes[1].childNodes[0].nodeValue;
        _global.notifyFromName     = xml.firstChild.childNodes[2].childNodes[0].nodeValue;
    System.useCodepage = true;
    xmlData.load('uploadData.xml');
    _global.keepInMemory = function(keep:Boolean) {
        if ((keep == true) and (_global.keepMemory == false)) {
            _global.keepMemory = true;
            this.createEmptyMovieClip("dummy_mc", 999);
            this.dummy_mc.onEnterFrame = function () {
                while(_global.keepMemory == true) {
                    var count:Number = count + 1;
        } else {
            if (_global.keepMemory = true) {
                _global.keepMemory = false;
                this.dummy_mc.unloadMovie();
    stop();
    Action Script from upload movie clip:
    import flash.net.FileReference;
    var progressBar:MovieClip;
    var reference:FileReference = new FileReference();
    var referenceListener:Object = {};
    var scriptLocation:String = 'uploader.php';
    var progressBarHeight:Number = 10;
    var progressBarY:Number = 50;
    var progressBarColor:Number = 0x66ccff;
    reference.addListener(referenceListener);
    referenceListener.onSelect = activateUploadButton;
    referenceListener.onProgress = updateProgress;
    referenceListener.onComplete = checkIn;
    referenceListener.onHTTPError = handleError;
    referenceListener.onIOError = handleError;
    referenceListener.onSecurityError = handleError;
    btn_uploadFile._visible = false;
    btn_selectFile.onRelease = choose;
    btn_uploadFile.onRelease = uploadCurrent;
    function activateUploadButton():Void {
        display_txt.text = reference.name;
        btn_uploadFile._visible = true;
        btn_uploadFile.enabled = true;
    function choose():Void {
        reference.browse([{description:'Images (*.ai, *.drw, *.jpg, *.jpeg, *.gif, *.pdf, *.png, *.psd, *.psp, *.tif,)', extension:'*.ai; *.drw; *.jpg; *.jpeg; *.gif; *.pdf; *.png; *.psd; *.psp; *.tif'}]);
    function handleError(errorName:String, detail:Object):Void {
        restart();
        if (arguments.length === 2) {
            if (typeof detail === 'number') {
                display_txt.text = 'HTTP Error #'+detail;
            } else {
                display_txt.text = 'Security Error: '+detail;
        } else {
            display_txt.text = 'IO Error';
    function makeProgressBar(x:Number, y:Number):MovieClip {
        var bar:MovieClip = createEmptyMovieClip('progressBar_mc', 0);
        bar._visible = false;
        bar.beginFill(progressBarColor);
        bar.lineTo(display_txt._width, 0);
        bar.lineTo(display_txt._width, progressBarHeight);
        bar.lineTo(0, progressBarHeight);
        bar.lineTo(0, 0);
        bar.endFill();
        bar._width = 0;
        bar._visible = true;
        bar._x = x;
        bar._y = y;
        return bar;
    function restart():Void {
        removeMovieClip(progressBar);
        display_txt.text = '';
        btn_uploadFile._visible = false;
        btn_selectFile._visible = true;
    function updateProgress(fileReference:FileReference, bytesLoaded:Number, bytesTotal:Number):Void {
        display_txt.text = fileReference.name+' - '+Math.ceil((bytesLoaded/bytesTotal)*100)+'%';
        progressBar._width = Math.ceil(display_txt._width*(bytesLoaded/bytesTotal));
    function uploadCurrent():Void {
        btn_selectFile._visible = false;
        btn_uploadFile.enabled = false;
        progressBar = makeProgressBar(0, progressBarY);
        _global.keepInMemory(true);
        reference.upload(scriptLocation);
    function checkIn():Void {
        _global.keepInMemory(false);
        moveFile();
        notify()
        restart();
    function moveFile():Void {
          _global.uploadedFile = (_global.uploadFolder + '/' + reference.name);
    //    var lv_result:LoadVars = new LoadVars();
    //    var lv_move = new LoadVars();
    //    lv_move.fileName = reference.name;
    //    lv_move.rootFolder = (_global.rootFolder);
    //    lv_move.sourceFolder = (_global.uploadFolder);
    //    lv_move.targetFolder = (_global.uploadFolder);
    //    lv_move.sendAndLoad("mover.php", lv_result, "POST");
    function notify():Void {
        var st_companyName:String = ('<tr><td>Company name:</td><td>'+_global.companyName+'</td></tr>')
        var st_contactName:String = ('<tr><td>Contact name:</td><td>'+_global.contactName+'</td></tr>')
        var st_phoneNumber:String = ('<tr><td>Phone number:</td><td>'+_global.phoneNumber+'</td></tr>')
        var st_address:String = "";
        if (_global.address2 <> "") {
            st_address = ('<tr><td>Address:</td><td>'+_global.address1+'</td></tr><tr><td> </td><td>'+_global.address2+'</td></tr><tr><td> </td><td>'+_global.addressCity+', '+_global.addressState + ' ' + _global.addressZip + '</td></tr>');
        } else {
            st_address = ('<tr><td>Address:</td><td>'+_global.address1+'</td></tr><tr><td> </td><td>'+_global.addressCity+', '+_global.addressState+' '+ _global.addressZip + '</td></tr>');
        var st_email:String = ('<tr><td>E-Mail:</td><td>'+_global.email+'</td></tr>')
        var st_quantity:String = ('<tr><td>Quantity:</td><td>'+_global.quantity+'</td></tr>')
        var st_sides:String = ('<tr><td>Sides:</td><td>'+_global.sides+'</td></tr>')
        var st_paperWeight:String = ('<tr><td>Paper weight:</td><td>'+_global.sides+'</td></tr>')
        var st_jobDescription:String = ('<tr><td>Desc/Title of job:</td><td>'+_global.jobDescription+'</td></tr>')
        var st_uploadedFile:String = ('<tr><td>Uploaded file:</td><td>'+_global.uploadedFile+'</td></tr>')
        var result_lv:LoadVars = new LoadVars();
        result_lv.onLoad = function(success:Boolean) {
        if (success) {
        } else {
        var lv_notify = new LoadVars();
        lv_notify.sender_fromEmail = _global.notifyFromEmail;
        lv_notify.sender_toEmail = _global.notifyToEmail;
        lv_notify.sender_fromName = _global.notifyFromName;
        lv_notify.sender_subject = ('File received from ' + _global.companyName);
        lv_notify.sender_message = ('<table width="550" border="1" align="left">' + st_companyName + st_contactName + st_phoneNumber + st_address + st_email + st_quantity + st_sides + st_paperWeight + st_jobDescription + st_uploadedFile + '</table>');
        lv_notify.sendAndLoad("sendmail.php", result_lv, "POST");
        return;
    uploader.php -<?php
        if ($_FILES['Filedata']['name']) {
            upload_max_filesize = 100M;
            post_max_size = 100M;
            move_uploaded_file($_FILES['Filedata']['tmp_name'], 'uploads/' . basename($_FILES['Filedata']['name']));
    ?>

    Thank you, your answer was helpful. The problem was occuring before I entered the the code you referred to. But your response made me realize that the problem did, indeed, have to do with code that was running during the upload. I isolated the problem to the progress bar logic, which I suspect is not a coding error, but just too many cycles for the player to put up with during a long upload.  I am now searching for another method of displaying upload status without a tight piece of code that loops a lot.
    Thank you again kglad!

  • Upload file jsp code doesn't work? How can I debug

    Hi Everyone,
    I have the following jsp code that simply adds a new product to the backend database when 'Continue' button is pressed.
    if( "Continue".equals(fp.getParameter("Submit")) ) {
         fp.setParameters(prodForm);
         prodForm.setCreateBy(currentUser.getUserID());
         prodForm.save();
         String filename = fp.getFilename("file");
              if( filename != null ) {
              // a file was uploaded
              // set the path to save it
              fp.setFilePath(PHYSICAL_PATH + "uploads\\");
              // we will change the filename to make sure it is unique
              // need to keep the file type
              String fileType = "";
              try { fileType = filename.substring( filename.lastIndexOf(".") ).toLowerCase(); }
              catch( Exception e ) { fileType = ""; }
              fp.saveFile("file", "POS_" + prodForm.getProductID() + fileType);
              prodForm.setSketch("POS_" + prodForm.getProductID() + fileType);
              prodForm.save();
         db.close();
         response.sendRedirect("index.jsp");
         return;
    }The code works fine but the upload doesn't work. This is the upload part of the above code:
    String filename = fp.getFilename("file");
              if( filename != null ) {
              // a file was uploaded
              // set the path to save it
              fp.setFilePath(PHYSICAL_PATH + "uploads\\");
              // we will change the filename to make sure it is unique
              // need to keep the file type
              String fileType = "";
              try { fileType = filename.substring( filename.lastIndexOf(".") ).toLowerCase(); }
              catch( Exception e ) { fileType = ""; }
              fp.saveFile("file", "POS_" + prodForm.getProductID() + fileType);
              prodForm.setSketch("POS_" + prodForm.getProductID() + fileType);
              prodForm.save();
         db.close();
         response.sendRedirect("index.jsp");So if the file browser, <input type="file" name="file">, has a file, then it saves the file in the upload folder and saves the filename in the database. But it doesn't work, it doesn't save the file in the upload folder nor it saves the filename in the database. I am new to java and jsp so could you tell me what error checking or deguging I can do in jsp to spot the problem.
    Thanks,
    Zub

    where u write the code to upload the file
    to server end?

  • Multiple file upload in jsp with out using �FILE� type filed.

    I have an applet that is used for multiple file selection, It allows drag and drop functionality also. The problem is once the user selects multiple files it has to get uploaded to the server. Since it�s not part of a file type component while submitting the form we won�t get the file contents.
    We can use multipart api for uploading files, but if the file selected by the user is not by the file type filed the file contents won�t come as part in the jsp submission and I can�t assign the file names selected by the user through the applet to any FILE (hidden ) type in jsp .
    Please give a solution�

    We can use multipart api for uploading files, but if the file selected by the user is not by the file type filed the file contents won&#146;t come as part in the jsp submission and I can&#146;t assign the file names selected by the user through the applet to any FILE (hidden ) type in jsp .Well i think thats a wrong notion which you have...
    you can very well get non-file type field data & file item data from a multipart form.
    Anyways,Letz checkout a simple example(refer to the below Code-snippet down below) which can do that task for us and it uses commons-fileupload & commons-io libraries.
    FileUpload.jsp
    ==========
    <form name="sampleForm" action="uploadAction" method="POST" enctype="multipart/form-data">
      File Name 1: <input type="text" name="fileName1" size="5" /> <br/>
      File: <input type="file" name="file1" id="file1" /> <br/>
      File Name 2: <input type="text" name="fileName2" size="5" /> <br/>
      File: <input type="file" name="file2" id="file2" /> <br/>
      File Name 3: <input type="text" name="fileName3" size="5" /> <br/>
      File: <input type="file" name="file3" id="file3"/> <br/>
      File Name 4: <input type="text" name="fileName4" size="5" /> <br/>
      File: <input type="file" name="file4" id="file4"/> <br/>
      <input type="submit" value="upload"/>
    </form>uploadAction method in (backingBean) :
    ==============================
    public void uploadAction(HttpServletRequest request,HttpServletResponse response)throws Exception{
          FileUploadUtils fuu = new FileUploadUtils(request);
          Map<String,FileItem> fileFields = fuu.getFileFiledsMap();
          Map<String,String> nonfileFields = fuu.getNonFileFiledsMap();
           String fileName1 =  nonfileFields.get("fileName1");
           FileItem file1 = fileFields.get("file1");       
           byte file1ContentBuffer[] = file1.get();
           String file1ContentType = file1.getContentType();
           InputStream file1ins = file1.getInputStream(); 
           file1.write(file1Name);
           String fileName2 =  nonfileFields.get("fileName2");
           FileItem file2 = fileFields.get("file2");
           byte file2ContentBuffer[] = file2.get();
           String file2ContentType = file2.getContentType();
           InputStream file2ins = file2.getInputStream();
           file2.write(file2Name);
    }FileUploadUtils.java:
    ===============
    import java.io.File;
    import java.io.FileOutputStream;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.Iterator;
    import java.util.List;
    import java.util.StringTokenizer;
    import java.util.Vector;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.commons.fileupload.DiskFileUpload;
    import org.apache.commons.fileupload.FileItem;
    import com.gehcsr.utils.dao.DbQueryUtils;
    public class FileUploadUtils {
       private Map<String,FileItem> fileItemMap = null;
       private  Map<String,String> nFileItemMap = null;
       private HttpServletRequest request = null;
       public FileUploadUtils(HttpServletRequest request)throws Exception{
                   this.request = request;    
                   this.fileItemMap = new HashMap<String,FileItem>();
                   this.nFileItemMap = new HashMap<String,String>();
                   this.init();
       private void init() throws Exception{
          DiskFileUpload dfu  = null;
          List fileItems  = null;   
             try{
                   dfu = new DiskFileUpload();
                   dfu.setSizeMax(1000000);
                   dfu.setSizeThreshold(4096);
                   dfu.setRepositoryPath(System.getProperty(java.io.tmpdir));
                   fileItems = dfu.parseRequest(this.request);
                   if(dfu.isMultipartContent && fileItems != null){
                            Iterator iter =  fileItems.iterator();
                  while (iter.hasNext()) {
                       FileItem item = (FileItem) iter.next();           
                                  String fieldName = item.getFieldName(); 
                             if (!item.isFormField()){
                                              String fieldValue = item.toString();
                                               this.nFileItemMap.put(fieldName,fieldName); 
                                         }else
                                             this.fileItemMap.put(fieldName,item);                              
                    }catch(Exception exp){
                         exp.printStackTrace();
                         System.err.println(exp.getMessage());
                         throw new Exception(exp.getCause());
                    } finally{
                       fileItems = null;
                       dfu = null; 
             public  Map<String,FileItem>  getFileFiledsMap(){
                    return this.getFileFiledsMap;
             public Map<String,String> getNonFileFiledsMap(){
                   return this.nFileItemMap;
    NOTE:* Do not forget to add latest versions of commons-fileupload.jar & commons-io.jar in your classpath.You might get few warings due some issues with regards to generics please neglect them.
    and it is not certain that you ought to use commons libraries for this there are many other alternative solutions available by which you can implement a similar functionality.
    Hope this might help !!! if that does do not forget to assign/share duke dollars which you have promised :)
    REGARDS,
    RaHuL

Maybe you are looking for

  • I-tunes won't open my files from my external hard drive....

    I am trying to upload my files from my old ext. HD to my new one. And I tried doing it a few times, and it wasn't compltely working. Some files weren't copying over, and some files were just getting duplciated, and I had like 10 copies of the same fi

  • Capture Sharpening & Lens Corrections- Does the order matter?

    Okay, I think I understand the concept that all of the changes made in Lightroom are metadata edits, and so it does not matter what order you make changes to your image. So using the lightroom controls for sharpening and lens corrections (chromatic a

  • Archive log error

    Newbie DBA DB: Oracle 10 g OS: windows I have 2 databases A(production) and B(Standby- DR) . I am manually copying the archive log files from A to B and applying it . SQL> recover standby database; ORA-00279: change 23515270208 generated at 10/13/201

  • Using   median  in reports

    Is there a way to create a Median function that can be used in creating oracle reports ?? (the Mean is not what we need). Thanks rich

  • Brightness change in other elements while using Scroll Effects on another

    I am using Scroll Effects on a short piece (two words) of text.  The scroll effect takes place on the LEFT hand side of my page.  When rendered to a browser, on the opposite side of the page, two text blocks out of five, which are situated vertically