小编foo*_*foo的帖子

java将inputStream转换为base64字符串

有一种方法可以将inputStream转换为String,并将其编码为base64,对吗?在我的函数中,我得到了InputStream参数,需要将它插入到我的Oracle数据库表的BLOB字段中.有没有办法做到这一点?(我的数据库对象包含保存图像的字符串字段,但我没有找到任何方法将inputStream转换为base64格式的字符串)谢谢!

java string base64 inputstream

13
推荐指数
3
解决办法
3万
查看次数

在 android react native 项目上运行不工作有一些错误

我正在尝试运行我通过此链接创建的 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)

java android facebook react-native

5
推荐指数
0
解决办法
1152
查看次数

标签 统计

java ×2

android ×1

base64 ×1

facebook ×1

inputstream ×1

react-native ×1

string ×1