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

Using hashtable for multi part form

 
Loh Peggie
Ranch Hand
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys do you have any examples that uses hash table for multi part form to insert data into database(My sql server).


Thanks


insert.jpg
Insert image as well as details to database
[Thumbnail for insert.jpg]
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by 'uses a HashTable' ?
 
Loh Peggie
Ranch Hand
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A HashTable seems to make as much sense as a fork.

What are you really trying to accomplish?
 
Loh Peggie
Ranch Hand
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh I am trying to insert image as well as details into the database.
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic