Subject | Re: [Firebird-Java] Re: Empty blob query problem |
---|---|
Author | William L. Thomson Jr. |
Post date | 2002-07-24T23:57:21Z |
Solution.
Maybe a hack but will save time for now trying to figure out why.
I just changed
private FBBlobInputStream() throws SQLException {
if (blob_id == 0) {
throw new SQLException("You can't read a new blob");
}
try {
blob = c.openBlobHandle(blob_id);
}
catch (GDSException ge) {
throw new SQLException("couldn't open blob: " + blob_id + "
exception: " + ge.toString());
}
}
To
private FBBlobInputStream() throws SQLException {
try {
blob = c.openBlobHandle(blob_id);
}
catch (GDSException ge) {
throw new SQLException("couldn't open blob: " + blob_id + "
exception: " + ge.toString());
}
}
And voila my app works without that damn error. Now I do not know if it
will effect other things later, but as long as that error is gone I am a
happy camper.
So unless who ever wrote that function has a good reason to have that if
statement in there, I am all for just tossing it out.
As that is what solved my problem.
Sorry for not doing my part to look into that and take care of it
sooner.
Does this qualify me to become part of the project. :)
Anyway let me know, till then I will use the version I just modified and
compiled. So I can get rid of that damn exception, and my apps can
function as intended.
--
Sincerely,
William L. Thomson Jr.
Support Group
Obsidian-Studios Inc.
439 Amber Way
Petaluma, Ca. 94952
Phone 707.766.9509
Fax 707.766.8989
http://www.obsidian-studios.com
Maybe a hack but will save time for now trying to figure out why.
I just changed
private FBBlobInputStream() throws SQLException {
if (blob_id == 0) {
throw new SQLException("You can't read a new blob");
}
try {
blob = c.openBlobHandle(blob_id);
}
catch (GDSException ge) {
throw new SQLException("couldn't open blob: " + blob_id + "
exception: " + ge.toString());
}
}
To
private FBBlobInputStream() throws SQLException {
try {
blob = c.openBlobHandle(blob_id);
}
catch (GDSException ge) {
throw new SQLException("couldn't open blob: " + blob_id + "
exception: " + ge.toString());
}
}
And voila my app works without that damn error. Now I do not know if it
will effect other things later, but as long as that error is gone I am a
happy camper.
So unless who ever wrote that function has a good reason to have that if
statement in there, I am all for just tossing it out.
As that is what solved my problem.
Sorry for not doing my part to look into that and take care of it
sooner.
Does this qualify me to become part of the project. :)
Anyway let me know, till then I will use the version I just modified and
compiled. So I can get rid of that damn exception, and my apps can
function as intended.
--
Sincerely,
William L. Thomson Jr.
Support Group
Obsidian-Studios Inc.
439 Amber Way
Petaluma, Ca. 94952
Phone 707.766.9509
Fax 707.766.8989
http://www.obsidian-studios.com