Skip to content

Commit

Permalink
fix use of byte input stream
Browse files Browse the repository at this point in the history
  • Loading branch information
vsch committed Apr 24, 2020
1 parent 6f1946d commit 63966eb
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

package com.vladsch.flexmark.util.misc;

import com.sun.xml.internal.messaging.saaj.util.ByteInputStream;

import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.datatransfer.DataFlavor;
Expand Down Expand Up @@ -175,7 +173,7 @@ public static BufferedImage loadImageFromContent(byte[] cachedImageBytes, String
return null;
}

ByteInputStream inputStream = new ByteInputStream(cachedImageBytes, cachedImageBytes.length);
ByteArrayInputStream inputStream = new ByteArrayInputStream(cachedImageBytes);

try {
return ImageIO.read(inputStream);
Expand Down

0 comments on commit 63966eb

Please sign in to comment.