| Author |
mysql, blobs, images
|
Wendy Gibbons
Bartender
Joined: Oct 21, 2008
Posts: 1098
|
|
i have one program that inserts an image onto a mysql database
and then one that trys to read it and display it
the exception i am getting is:
so how do i tell if it is the insert or select that is failing?
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24081
|
|
What is "ALLBITS"?
bytes = blob.getBytes(1, ALLBITS);
Shouldn't this be
bytes = blob.getBytes(1, blob.length());
|
[Jess in Action][AskingGoodQuestions]
|
 |
Wendy Gibbons
Bartender
Joined: Oct 21, 2008
Posts: 1098
|
|
i saw allbits, and it made sense so tried it, your version works a lot better.
Thanks.
but is there a way to get the blob out just using mysql as i am sure i will have further problems?
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24081
|
|
Hi Wendy,
Hmm, what do you mean exactly, "Just using mysql?" I don't understand.
|
 |
Wendy Gibbons
Bartender
Joined: Oct 21, 2008
Posts: 1098
|
|
|
sorry nothing really, now i have the test read program working that is fine, thank you very much
|
 |
 |
|
|
subject: mysql, blobs, images
|
|
|