This week's book giveaway is in the Artificial Intelligence forum.
We're giving away four copies of Pragmatic AI and have Noah Gift on-line!
See this thread for details.
Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Data type mapping issue  RSS feed

 
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I have a problem when I retrieve a data from mySql.
I create table with - filename char (40) primary key, filedata longblob.
This is my test uploading code to store some data into database :



It's ok. When I check db upload is success.
But When I try to retrieve data get an exception. This is code for data retrieving :




And I get an exception when I try this. probably some incrrect data mapping, so I'll appreciate if some one refer me at problem solution. Thanks!

 
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the stack trace?
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, my mistake. I find a bug, a stupid one in the column declaration ;) it is - filedata - , and I was selecting - filedat->e<-
. dumb misspelling brought to me much trouble and cofusion today
Thanks anyway a lot , on your cooperation...
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!