Skip to content

can't load network image  #21035

@lizhuoyuan

Description

@lizhuoyuan

os: android

code:

const photoUri = 'http://test.hadoop.network/common/get_photo/id/ZzJiemFTc09TNmRxQTk3dDduU2paMXhMOE0wMzY0MzAzNA/20180910094002.jpg';

const global.token = 'H4sIAHRallsC_1WPTUvEMBCG_8qS8xYm_W5uC-pB6IpSQb2EfEyxbNOWpHG1y_530-1Fh_cwH8-8zFxIpwmjsEa2J21nUQqH3Du0fB2Rj-WxQ_PQKKiao3n5fm5Oib7T_jWeRP32WT_dw7le3qFeDsvxQIKHMnweTziE5VAq7Hs-eCPRhkaZ0zJP0wpoUVVhOgnnzqPVG9tKLpRC5_4ZWBQzaj53BkMnBlpGUEWQ7SBhScygCJCf9F9ofSe6aQfAbgqQG71VuLka1J03W97jF_aEwXrOj8FhJuxy3ZPVy83CTIESSueKyjKSKbYRpRgyWcYR5Bm2skhylCm5_gLilwZyTgEAAA==' ;

<Image
                            source={{
                                uri: photoUri,
                                method: 'POST',
                                headers: {uk: global.token, appname: 'payment', appversion: 100},
                            }}
                            onError={e => console.log(e)}
                            onLoad={console.log('success')}
                            style={[Style.greyBackView, {
                                position: 'absolute',
                                left: 0, right: 0, top: 0, bottom: 0,
                                marginTop: 0,
                                marginBottom: 0
                            }]}>
                        </Image>

onLoad is finished, but I can't see image.
but postman is ok
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions