Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

blob.putBytes(long,byte[]) and BLOBs  RSS feed

 
reddy palwai
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
I have a question...
I am using BLOBs to insert image file into the database.
After inserting an Empty_blob() into the database. I want to use blob.putBytes(long,byte[]) method to load the bytes into the blob.
I am getting the parameter from the html form.
AS request.getParameter("blob") gets the type String. I need to convert it into byte[]. Is it possible in java?? please help.
Can anyone please send me some sample code for inserting and retrieving BLOBs from the database. I dont have much experience in java servlets.
Thanks,
Reddy
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This forum is for posting questions about javaRanch...not Java! I am moving this to the servlets forum.
 
sonny kher
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
let me know if you don't understand any of this, its pretty straight forward really
 
reddy palwai
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sony for your Response. I have another question now about file uploading that I have just posted.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!