my dog learned polymorphism
The moose likes JDBC and the fly likes Data type mapping issue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Data type mapping issue" Watch "Data type mapping issue" New topic
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...
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Data type mapping issue
 
Similar Threads
dwonloading issue
developing jsp page using cewolf
connecting to mysql, with java, on a mac
Download file issue
com.mysql.jdbc.exceptions.jdbc4.communicationsexception communications link failure