Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



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

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 23-04-2009
Member
 
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.

Reply With Quote
  #2  
Old 23-04-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 05:38 PM.