File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Attachment file

 
anjana jalodiya
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to provide file attachment functionality in my application with this help i could be able to submit files on the web how can i implement this functionality in core java .
 
Swastik Dey
Rancher
Posts: 1601
5
Android Java Java ME
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think core java has such functionality. You probably have to look into jee or use some third party apis like apache commons.
 
Rob Spoor
Sheriff
Pie
Posts: 20369
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out HttpClient. The server needs to have a servlet, JSP page, PHP page, etc that can handle the uploaded files.

Moving to Sockets and Internet Protocols since it's not directly related to user interfaces, other than the JFileChooser you may need to select the files.
 
anjana jalodiya
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Spoor wrote:Check out HttpClient. The server needs to have a servlet, JSP page, PHP page, etc that can handle the uploaded files.

Moving to Sockets and Internet Protocols since it's not directly related to user interfaces, other than the JFileChooser you may need to select the files.


thanks for replying
I m using JFileChooser option to give the file selection facility but now problem is with attachment
as m working on desktop application with jboss server.........as i read from net there a java mail functionality to implement such kind of things....but i m not implementing mail type concept.i just want to give attachment facility where user can attach there document.i m also confuse where i should i save the attachment file on database or on server.
 
Ramesh Donnipadu
Ranch Hand
Posts: 100
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anjana,

Have you heard of Multipart content type?

Jason Hunter's MultipartRequest utility class will help you http://www.servlets.com/cos/javadoc/com/oreilly/servlet/MultipartRequest.html

Similar discussion at http://www.jguru.com/faq/view.jsp?EID=160

HTH,
Ramesh
 
anjana jalodiya
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ramesh Donnipadu wrote:Anjana,

Have you heard of Multipart content type?

Jason Hunter's MultipartRequest utility class will help you http://www.servlets.com/cos/javadoc/com/oreilly/servlet/MultipartRequest.html

Similar discussion at http://www.jguru.com/faq/view.jsp?EID=160

HTH,
Ramesh


thanks for reply
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic