Commit 4ca7853c30a8de443a12369a0b84a7173cf308a6
1 parent
f1505148
Exists in
master
Use base64 parser from javax.xml.bind.DatatypeConverter.
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableDataParser.java
... | ... | @@ -19,11 +19,12 @@ package eu.omp.irap.vespa.epntapclient.votable.controller; |
19 | 19 | import java.io.IOException; |
20 | 20 | import java.nio.ByteBuffer; |
21 | 21 | import java.util.ArrayList; |
22 | -import java.util.Base64; | |
23 | 22 | import java.util.HashMap; |
24 | 23 | import java.util.List; |
25 | 24 | import java.util.Map; |
26 | 25 | |
26 | +import javax.xml.bind.DatatypeConverter; | |
27 | + | |
27 | 28 | import org.apache.logging.log4j.LogManager; |
28 | 29 | import org.apache.logging.log4j.Logger; |
29 | 30 | |
... | ... | @@ -187,7 +188,7 @@ public class VOTableDataParser { |
187 | 188 | logger.info("Parsing data in BINARY stream..."); |
188 | 189 | String strStream = voStream.getValue().replaceAll("(\\r|\\n)", ""); |
189 | 190 | |
190 | - stream = ByteBuffer.wrap(Base64.getDecoder().decode(strStream)); | |
191 | + stream = ByteBuffer.wrap(DatatypeConverter.parseBase64Binary(strStream)); | |
191 | 192 | Object[] row = new Object[columnsName.length]; |
192 | 193 | |
193 | 194 | int nValue = 0; | ... | ... |