<tfoot id='m9m7K'></tfoot>
    <legend id='m9m7K'><style id='m9m7K'><dir id='m9m7K'><q id='m9m7K'></q></dir></style></legend>

    1. <i id='m9m7K'><tr id='m9m7K'><dt id='m9m7K'><q id='m9m7K'><span id='m9m7K'><b id='m9m7K'><form id='m9m7K'><ins id='m9m7K'></ins><ul id='m9m7K'></ul><sub id='m9m7K'></sub></form><legend id='m9m7K'></legend><bdo id='m9m7K'><pre id='m9m7K'><center id='m9m7K'></center></pre></bdo></b><th id='m9m7K'></th></span></q></dt></tr></i><div id='m9m7K'><tfoot id='m9m7K'></tfoot><dl id='m9m7K'><fieldset id='m9m7K'></fieldset></dl></div>
        <bdo id='m9m7K'></bdo><ul id='m9m7K'></ul>

      <small id='m9m7K'></small><noframes id='m9m7K'>

        在本机反应中将base64字符串转换为图像

        Convert base64 string to image in react native(在本机反应中将base64字符串转换为图像)

            • <bdo id='VQBEI'></bdo><ul id='VQBEI'></ul>
              <legend id='VQBEI'><style id='VQBEI'><dir id='VQBEI'><q id='VQBEI'></q></dir></style></legend>
                <tbody id='VQBEI'></tbody>

            • <small id='VQBEI'></small><noframes id='VQBEI'>

                <i id='VQBEI'><tr id='VQBEI'><dt id='VQBEI'><q id='VQBEI'><span id='VQBEI'><b id='VQBEI'><form id='VQBEI'><ins id='VQBEI'></ins><ul id='VQBEI'></ul><sub id='VQBEI'></sub></form><legend id='VQBEI'></legend><bdo id='VQBEI'><pre id='VQBEI'><center id='VQBEI'></center></pre></bdo></b><th id='VQBEI'></th></span></q></dt></tr></i><div id='VQBEI'><tfoot id='VQBEI'></tfoot><dl id='VQBEI'><fieldset id='VQBEI'></fieldset></dl></div>
                <tfoot id='VQBEI'></tfoot>
                1. 本文介绍了在本机反应中将base64字符串转换为图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  Problem

                  I created a social media app with expo's react native, and wanted to add the ability to upload images. Since expo won't let you convert a file to a blob to upload, I just uploaded the base64 image data as a string to the server database. How can I convert this data into the viewable image again after I download the data from off of the server?

                  解决方案

                  You can do this:

                  var base64Icon = 'data:image/png;base64,iVBORw0KGgoAAAANS...';
                  <Image style={{width: 50, height: 50}} source={{uri: base64Icon}}/>
                  

                  In the base64Icon variable you need to put your base64 data after data:image/png;base64,. Like this:

                  var base64Icon = 'data:image/png;base64,{PLACE_YOUR_BASE64_DATA_HERE}';
                  

                  这篇关于在本机反应中将base64字符串转换为图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Gradient Button to background-color blinks on hover(悬停时背景颜色的渐变按钮闪烁)
                  How to make hovering over active button not use hover effect?(如何使悬停在活动按钮上不使用悬停效果?)
                  html javascript show image hover(html javascript 显示图像悬停)
                  How to get css hover values on click?(如何在点击时获得 css 悬停值?)
                  Change background image on link hover(更改链接悬停时的背景图像)
                  Highlight multiple items on hover#39;s condition(突出显示悬停条件下的多个项目)
                  <tfoot id='lQmY2'></tfoot>
                2. <legend id='lQmY2'><style id='lQmY2'><dir id='lQmY2'><q id='lQmY2'></q></dir></style></legend>
                3. <small id='lQmY2'></small><noframes id='lQmY2'>

                4. <i id='lQmY2'><tr id='lQmY2'><dt id='lQmY2'><q id='lQmY2'><span id='lQmY2'><b id='lQmY2'><form id='lQmY2'><ins id='lQmY2'></ins><ul id='lQmY2'></ul><sub id='lQmY2'></sub></form><legend id='lQmY2'></legend><bdo id='lQmY2'><pre id='lQmY2'><center id='lQmY2'></center></pre></bdo></b><th id='lQmY2'></th></span></q></dt></tr></i><div id='lQmY2'><tfoot id='lQmY2'></tfoot><dl id='lQmY2'><fieldset id='lQmY2'></fieldset></dl></div>
                      <bdo id='lQmY2'></bdo><ul id='lQmY2'></ul>

                        <tbody id='lQmY2'></tbody>