| Author |
Using hashtable for multi part form
|
Loh Peggie
Ranch Hand
Joined: Jul 09, 2009
Posts: 51
|
|
Hey guys do you have any examples that uses hash table for multi part form to insert data into database(My sql server).
Thanks
|
 |
Sebastian Janisch
Ranch Hand
Joined: Feb 23, 2009
Posts: 1183
|
|
|
What do you mean by 'uses a HashTable' ?
|
JDBCSupport - An easy to use, light-weight JDBC framework -
|
 |
Loh Peggie
Ranch Hand
Joined: Jul 09, 2009
Posts: 51
|
|
Oh it is because my form is using multipart from that enbales me to upload/Insert image into my database.
Howerver, I also need to insert other details into my database such as productid, ProdName, unitprice.....
Hence, My tutor suggested using hashtable.
However, I do not understnd.
Do you guys have any samples regarding on this?
I read some of the post that is something similar but still do not get it.
Thanks
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56157
|
|
A HashTable seems to make as much sense as a fork.
What are you really trying to accomplish?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Loh Peggie
Ranch Hand
Joined: Jul 09, 2009
Posts: 51
|
|
Oh I am trying to insert image as well as details into the database.
|
 |
Sebastian Janisch
Ranch Hand
Joined: Feb 23, 2009
Posts: 1183
|
|
I don't know how a Hashtable (by the way, don't use Hashtable, it's an old implementation, use HashMap instead) is going to help you.
What you need to do is read the binary data and then send it to your database.
|
 |
 |
|
|
subject: Using hashtable for multi part form
|
|
|