• Post Reply Bookmark Topic Watch Topic
  • New Topic

Heeellllppppp......Uploading images

 
Sanz Joanne
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody know where i could get JSP source code that can upload and download images from my sybase database. Please Please Please
 
sampy jagan
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably you wont find one Readymade.
you have to code one yourself, use ResultSet.getBytes(), or ResultSet.getObject()
Note that in Sybase the default SQL Select size is 32K. Larger images will be silently truncated, in that case use Statement.setMaxFieldSize(), Also see to it that you dont give a too large value which will make your JDBC run out of memory.
Regards
jagan
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sanz,
Please change your name to be compliant with JavaRanch's naming policy. It should not be obviously fictitious.
Your displayed name should be 2 separate names with more than 1 letter each. We really would prefer that you use your REAL name.
You can change your name: here.
Thanks,
Cindy
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!