From 6f5cf0bdb1958430be42ef3c64b4645a16985b9e Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Wed, 7 May 2014 03:34:34 +0000 Subject: add getBlob convenience method git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@861 f203690c-595d-4dc9-a70b-905162fa7fd2 --- src/test/java/com/healthmarketscience/jackcess/util/OleBlobTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/test') 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) { -- cgit v1.2.3