Results 1 to 7 of 7
- 05-04-2009, 06:35 AM #1
- 05-04-2009, 07:49 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Attachment coding? What is that suppossed to be?
- 05-04-2009, 08:12 AM #3
I have to provide the user to attach files in my screen. The files which are atteched have to be saved in database.
- 05-04-2009, 08:17 AM #4
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
File Upload? Web Application?
- 05-04-2009, 08:35 AM #5
yes ......... web application
- 05-04-2009, 09:08 AM #6
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
JSP Example: File Uploading
Google "Java file upload" (one good example provided above), then rather than writing the stream you get from the request to a file, write it to a DB column using the setAsciiStream, setBinaryStream, or setCharacterStream of PreparedStatement, read the API for that method and the Sun Tutorials for JDBC in general.
- 05-04-2009, 10:47 AM #7
Similar Threads
-
What are you using to write your code?
By CaptainMorgan in forum New To JavaReplies: 948Last Post: Yesterday, 12:41 PM -
Can I write code in 2 different files ?
By fartek in forum New To JavaReplies: 2Last Post: 02-14-2009, 03:48 PM -
Help me to write a secure code
By Bhavis in forum Advanced JavaReplies: 4Last Post: 01-21-2009, 06:06 AM -
How to write efficient maintainable code.
By Zosden in forum Advanced JavaReplies: 9Last Post: 05-01-2008, 04:48 AM -
How to write code comments
By Java Tip in forum java.langReplies: 0Last Post: 04-23-2008, 08:06 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks