diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2014-05-07 03:34:34 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2014-05-07 03:34:34 +0000 |
commit | 6f5cf0bdb1958430be42ef3c64b4645a16985b9e (patch) | |
tree | 714071dfca919572495f5d117fa0992b8ad90b59 /src/test | |
parent | 903e35369a7c7ceea4a73858e4744e17ee8c8eb8 (diff) | |
download | jackcess-6f5cf0bdb1958430be42ef3c64b4645a16985b9e.tar.gz jackcess-6f5cf0bdb1958430be42ef3c64b4645a16985b9e.zip |
add getBlob convenience method
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@861 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/com/healthmarketscience/jackcess/util/OleBlobTest.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/java/com/healthmarketscience/jackcess/util/OleBlobTest.java b/src/test/java/com/healthmarketscience/jackcess/util/OleBlobTest.java index 3a1cc05..250d433 100644 --- a/src/test/java/com/healthmarketscience/jackcess/util/OleBlobTest.java +++ b/src/test/java/com/healthmarketscience/jackcess/util/OleBlobTest.java @@ -101,8 +101,7 @@ public class OleBlobTest extends TestCase for(Row row : t) { try { - blob = OleBlob.Builder.fromInternalData( - row.getBytes("ole")); + blob = row.getBlob("ole"); OleBlob.Content content = blob.getContent(); assertSame(blob, content.getBlob()); assertSame(content, blob.getContent()); @@ -171,7 +170,7 @@ public class OleBlobTest extends TestCase try { String name = row.getString("name"); - oleBlob = OleBlob.Builder.fromInternalData(row.getBytes("ole_data")); + oleBlob = row.getBlob("ole_data"); OleBlob.Content content = oleBlob.getContent(); Attachment attach = null; if(content.getType() != OleBlob.ContentType.LINK) { |