有一种方法可以将inputStream转换为String,并将其编码为base64,对吗?在我的函数中,我得到了InputStream参数,需要将它插入到我的Oracle数据库表的BLOB字段中.有没有办法做到这一点?(我的数据库对象包含保存图像的字符串字段,但我没有找到任何方法将inputStream转换为base64格式的字符串)谢谢!
我正在尝试运行我通过此链接创建的 React Native 项目:https : //facebook.github.io/react-native/docs/getting-started.html
我不知道出了什么问题...
并得到这个错误:
D:\reactNativeInstall\some>react-native run-android
Starting JS server...
Running adb -s 4d000b6157ee602b reverse tcp:8081 tcp:8081
Building and installing the app on the device (cd android && gradlew.bat install
Debug...
Downloading https://services.gradle.org/distributions/gradle-2.4-all.zip
Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.val
idator.ValidatorException: PKIX path building failed: sun.security.provider.cert
path.SunCertPathBuilderException: unable to find valid certification path to req
uested target
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
at sun.security.ssl.Handshaker.processLoop(Unknown …Run Code Online (Sandbox Code Playgroud)