# Profile photos aren't visible

**URL:** <https://community.sendbird.com/t/profile-photos-arent-visible/3741>\
**Category:** Android\
**Tags:** android, uikit\
**Created:** [January 10, 2022, 10:59am UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741 "2022-01-10T10:59:43Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jamworks](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@Jamworks](https://community.sendbird.com/u/Jamworks)\
**Post date:** [January 10, 2022, 10:59am UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/1 "2022-01-10T10:59:43Z")

</div>

We don’t see profile photos of our users within the chat application. However, if we set the photo for the channel, we see it as expected.  
We use ChannelListActivity.

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [January 10, 2022, 7:02pm UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/2 "2022-01-10T19:02:08Z")

</div>

Hi @Jamworks,

Can you provide me with the version of the Android UIKit you’re utilizing as well as how you’re setting profile photos for users?

---

<div class="post-metadata">

**Author:** ![Jamworks](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@Jamworks](https://community.sendbird.com/u/Jamworks)\
**Post date:** [January 10, 2022, 8:03pm UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/3 "2022-01-10T20:03:56Z")

</div>

uikit:2.2.2  
So we have tried to send it by →   
SendBird.updateCurrentUserInfo (it was success)  
And from browser as well

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [January 10, 2022, 9:21pm UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/4 "2022-01-10T21:21:36Z")

</div>

@Jamworks,

Would you mind DM’ing me your Application ID so I can take a look at a couple of things? Additionally, could you provide me with an example user whose profile doesn’t show up?

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [January 11, 2022, 5:55pm UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/5 "2022-01-11T17:55:05Z")

</div>

@Jamworks,

Thank you for sending me your Application ID and user. I took a quick look and it looks like the URLs being used are note Sendbird URLs. This is okay but it makes it difficult for us to understand why the images are not loading.

Are you able to utilize a network proxy to inspect the URL calls that are being made from the UIKit? Something like Burp or Proxyman.

This would help us understand whether or not the URL for the profile image is actually being called or not.

---

<div class="post-metadata">

**Author:** ![Jamworks](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@Jamworks](https://community.sendbird.com/u/Jamworks)\
**Post date:** [January 11, 2022, 6:56pm UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/7 "2022-01-11T18:56:00Z")

</div>

I can update user info with this function SendBird.updateCurrentUserInfo , can it help?

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [January 11, 2022, 7:07pm UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/8 "2022-01-11T19:07:26Z")

</div>

Hey James, it would be nice to see what happens if you upload an image directly to Sendbird, rather than passing a URL. I still think that using something like Burp or Proxyman to see what is going on at a network level would be beneficial. We’ve not seen any reports of other customers experiencing issues with profile\_urls on the Android UIKit.

---

<div class="post-metadata">

**Author:** ![Jamworks](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@Jamworks](https://community.sendbird.com/u/Jamworks)\
**Post date:** [January 11, 2022, 7:58pm UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/9 "2022-01-11T19:58:38Z")

</div>

I do not really understand 🙂  
I need to try to upload a picture of a user not as a url, but as a file?

---

<div class="post-metadata">

**Author:** ![Jamworks](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@Jamworks](https://community.sendbird.com/u/Jamworks)\
**Post date:** [January 11, 2022, 8:11pm UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/10 "2022-01-11T20:11:10Z")

</div>

Please describe step by step what I need to do

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [January 11, 2022, 8:14pm UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/11 "2022-01-11T20:14:49Z")

</div>

Hi @Jamworks,

You’ll want to utilize this link:

> **[Authentication | Chat Android SDK | Sendbird Docs](https://sendbird.com/docs/chat/v3/android/guides/authentication#2-update-user-profile)**
>
> Authenticate a user with Sendbird server to use features of Sendbird Chat SDK for Android.

Essentially:

```auto
SendBird.updateCurrentUserInfoWithProfileImage(NICKNAME, PROFILE_FILE, new UserInfoUpdateHandler() {
    @Override
    public void onUpdated(SendBirdException e) {
        if (e != null) {
            // Handle error.
        }

        // A new profile images is successfully uploaded to Sendbird server.
        // You could redraw the profile in a view in response to this operation.
        ...
    }
});

```

---

<div class="post-metadata">

**Author:** ![Jamworks](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@Jamworks](https://community.sendbird.com/u/Jamworks)\
**Post date:** [January 12, 2022, 7:02pm UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/12 "2022-01-12T19:02:45Z")

</div>

I get an error Invalid value: “Profile file mimetype”.

 ![Снимок экрана 2022-01-12 в 21.00.12](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/3/3315c48496f783b954a6dee0c26e9a8f8f0ae62d.png)

---

<div class="post-metadata">

**Author:** ![walter.rodriguez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/walter.rodriguez/32/546_2.png) [@walter.rodriguez](https://community.sendbird.com/u/walter.rodriguez)\
**Post date:** [January 24, 2022, 2:56pm UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/13 "2022-01-24T14:56:52Z")

</div>

- As you are getting the file from your Drawable resources, your routine for creating a File object may contain an error and that’s why it’s not possible to update.

- Do you have all the permissions granted as well?

Check our sample how in the Settings you can change your profile picture:

> **[sendbird-uikit-android/uikit-custom-sample at main ·...](https://github.com/sendbird/sendbird-uikit-android/tree/main/uikit-custom-sample)**
>
> main/uikit-custom-sample

This file has all the functions:

> <https://github.com/sendbird/sendbird-uikit-android/blob/main/uikit-custom-sample/src/main/java/com/sendbird/uikit/customsample/SettingsFragment.java>

---

<div class="post-metadata">

**Author:** ![Jamworks](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@Jamworks](https://community.sendbird.com/u/Jamworks)\
**Post date:** [January 27, 2022, 10:00am UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/15 "2022-01-27T10:00:54Z")

</div>

Our users do not yet have the opportunity to choose a photo for themselves. But why are the photos that we put to our users in the sendbird console not displayed?

---

<div class="post-metadata">

**Author:** ![walter.rodriguez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/walter.rodriguez/32/546_2.png) [@walter.rodriguez](https://community.sendbird.com/u/walter.rodriguez)\
**Post date:** [January 27, 2022, 4:08pm UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/16 "2022-01-27T16:08:31Z")

</div>

When you say:

> the photos that we put to our users in the sendbird console

You mean when you upload an image from your code?  
It’s because the SDK is not recognising the image as a proper file… I guess the problem is with the `createFileFromResource` method…

---

<div class="post-metadata">

**Author:** ![Jamworks](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@Jamworks](https://community.sendbird.com/u/Jamworks)\
**Post date:** [January 27, 2022, 7:37pm UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/17 "2022-01-27T19:37:26Z")

</div>

Sorry, I probably phrased it wrong.  
Our users cannot set photos for themselves, but when we try to set photos for them in the browser, they are still not visible.  
We try to set it here

 ![Снимок экрана 2022-01-27 в 21.35.07](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/c/cf5438255501216a102c5fd197b34fba3eeb3a69.png)

---

<div class="post-metadata">

**Author:** ![walter.rodriguez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/walter.rodriguez/32/546_2.png) [@walter.rodriguez](https://community.sendbird.com/u/walter.rodriguez)\
**Post date:** [January 28, 2022, 11:26am UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/18 "2022-01-28T11:26:55Z")

</div>

Let me check this information and get back to you.

---

<div class="post-metadata">

**Author:** ![walter.rodriguez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/walter.rodriguez/32/546_2.png) [@walter.rodriguez](https://community.sendbird.com/u/walter.rodriguez)\
**Post date:** [January 28, 2022, 12:44pm UTC](https://community.sendbird.com/t/profile-photos-arent-visible/3741/19 "2022-01-28T12:44:20Z")

</div>

@Jamworks I tested you Sendbird Application ID along with usertest4 with this sample here and it’s working fine:

> **[SendBird-Android/local-caching at master · sendbird/SendBird-Android](https://github.com/sendbird/SendBird-Android/tree/master/local-caching)**
>
> master/local-caching

Can you please try it?

 ![Screenshot 2022-01-28 at 12.43.23](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/2/2a0aa03cdbd7f4d3d487518bf2d2b58b377da199.png)
