Skip to content

Commit

Permalink
Resolving merge with added blob issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
glenrobson committed May 8, 2024
1 parent 747942f commit 9e38b56
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private class ImageBlobOutputStream extends CompletableOutputStream {
private final OutputStream blobOutputStream;
private final OperationList ops;
private final Connection connection;
private final Blob blob;
private final PreparedStatement statement;

/**
* Constructor for writing derivative images.
Expand All @@ -82,6 +82,10 @@ private class ImageBlobOutputStream extends CompletableOutputStream {

final Blob blob = connection.createBlob();
blobOutputStream = blob.setBinaryStream(1);
statement = connection.prepareStatement(sql);
statement.setString(1, ops.toString());
statement.setBlob(2, blob);
statement.setTimestamp(3, now());
}

@Override
Expand Down

0 comments on commit 9e38b56

Please sign in to comment.