| Author |
Data type mapping issue
|
Goran Markovic
Ranch Hand
Joined: Sep 26, 2008
Posts: 399
|
|
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!
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
|
Can you post the stack trace?
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
Goran Markovic
Ranch Hand
Joined: Sep 26, 2008
Posts: 399
|
|
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...
|
 |
 |
|
|
subject: Data type mapping issue
|
|
|