Results 1 to 2 of 2

Thread: How do i load and save picture in java ide netbeans 6.5

  1. #1
    Join Date
    Mar 2009
    Location
    Ghana
    Posts
    15

    How do i load and save picture in java ide netbeans 6.5

    I will like to load a picture and save it with an ID of the one that i am saving the record for. can any one help me.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    Re: How do i load and save picture in java ide netbeans 6.5

    The File Upload component enables users of your web application to locate a file on their system and upload that file to the server. This component is useful for collecting text files, image files, and other data. The contents of the uploaded file are stored together with some information about the file, including the file name, size, and MIME type (such as text/plain or image/jpeg).

    The server holds the uploaded file in memory unless it exceeds 4096 bytes, in which case the server holds the file contents in a temporary file. You can change this threshold by modifying the sizeThreshold parameter for the UploadFilter filter entry in the web application's web.xml file. For more information on modifying the web.xml file, see the last section in this tutorial, Doing More: Modifying the Maximum File Upload Size.

    In cases where you want to retain the uploaded file, you have three choices:

    • Write the file to a location of your choice, as shown in this tutorial.
    • Create an UploadedFile property in a managed bean and set it to the component's value before you exit the page (as in the button's action method).
    • Save the file to a database.


    By default, the File Upload component can handle files up to one megabyte in size. You can change the maximum file size by modifying the maxSize parameter for the UploadFilter filter entry in the application's web.xml file.

Similar Threads

  1. AVG antivirus - Unable to load picture into a Facebook note
    By sObama in forum Networking & Security
    Replies: 6
    Last Post: 01-06-2011, 10:40 AM
  2. Windows picture viewer won't load photos
    By Xymaya in forum Windows Software
    Replies: 3
    Last Post: 02-01-2011, 11:41 AM
  3. Java Card Manager NetBeans plug-in
    By Galimberti in forum Software Development
    Replies: 5
    Last Post: 24-07-2010, 03:27 AM
  4. Java console application used in netbeans 5.5 ide
    By Erie in forum Software Development
    Replies: 6
    Last Post: 22-07-2010, 09:46 AM
  5. Java EJB not Found in Netbeans 6.0.1 and GlassFish V2
    By Aakaar in forum Software Development
    Replies: 4
    Last Post: 13-12-2008, 05:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •