|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
hi,
I am running an JSP application which selects and inserts blobs in to ORACLE... The application runs fine in my local machine but when I upload it to the server, I keep gettin an Internal Server Error "javax.servlet.ServletException" I comment the lines "doc = rs.getBlob("blobs");" and the page loads fine but ofcouse without the blob... I copied all the drivers i had to the server but nothing... can anyone help me out!!?? TIA, sands |
|
#2
|
|||
|
|||
|
What does the code look like?
Do you realise you can't treat it just like a stream, you need to get an input/ouputstream to it from the reference to it to write/read to it Oscagne |
|
#3
|
|||
|
|||
|
yes, i understand what u mean and yes I am using streams later on.. but the exception occurs right when i try to get the blob from the table...
hv checked and rechecked all the drivers, classpaths etc... and they look exactly the same as my localhost... dunno whats happening... ![]() PHP Code:
|
|
#4
|
|||
|
|||
|
It's a while since I've done this, but I'm sure I used the oracle dbms_lob.read and dbms_lob.write db procedures to read and write them.
I take it you say you aren't throwing errors if you remove this line, means that you are removing all the line refering to that variable aswell, so it may not be that line...why don't you put a try arount it and print the stack trace in the catch, that'll narrow it down. Also I think I might have had to use the Oracle blob type rather than the java.sql one, as they may differ per JDBC connection type, but this is just a vague memory, I may be wrong Oscagne |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > drivers for blobs??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|