mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
Repaired little write bug.
This commit is contained in:
@@ -300,6 +300,7 @@ public class BitstreamResource extends Resource
|
|||||||
log.info("Reading data of bitstream(id=" + bitstreamId + ").");
|
log.info("Reading data of bitstream(id=" + bitstreamId + ").");
|
||||||
org.dspace.core.Context context = null;
|
org.dspace.core.Context context = null;
|
||||||
InputStream inputStream = null;
|
InputStream inputStream = null;
|
||||||
|
String type = null;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -311,7 +312,7 @@ public class BitstreamResource extends Resource
|
|||||||
|
|
||||||
log.trace("Bitsream(id=" + bitstreamId + ") data was successfully read.");
|
log.trace("Bitsream(id=" + bitstreamId + ") data was successfully read.");
|
||||||
inputStream = dspaceBitstream.retrieve();
|
inputStream = dspaceBitstream.retrieve();
|
||||||
String type = dspaceBitstream.getFormat().getMIMEType();
|
type = dspaceBitstream.getFormat().getMIMEType();
|
||||||
|
|
||||||
context.complete();
|
context.complete();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user