• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This forum is for posting questions about javaRanch...not Java! I am moving this to the servlets forum.
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Sony for your Response. I have another question now about file uploading that I have just posted.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic