How to receive shared image and display it?

Hi, @Vishwas! :wave:
Thanks a lot for your help! :slight_smile:

I followed your given steps, and nothing showed up on the image component. These are my blocks -

image

Am I doing anything wrong?

Thanks! :blush:

Hmm
I’m not sure. Perhaps @Mika will be able to help you out better as he’s the author of the feature

2 Likes

Thanks, @Vishwas!

Let’s wait for @Mika.

Thanks! :blush:

Maybe you should first check the content of the “value” parameter as example inside a label.

Also you should first do a check which type the shared data is.
Example it does not make sense to receive text and your app tries to set it as image (Which will not work).

2 Likes

Hi, @Mika! :wave:
Thanks for your reply! :slight_smile:


I tried to display both type & value parameters through these blocks -

image

The label displayed,

2 , /external/images/media/1219


I think the 2 indicates it’s an image, as this hint says -

image

What is that /external/ … thing?

Thanks a lot! :blush:

That’s the path to the received image.
Maybe you need to add some other words in front of it that it works correct for the picture.

Can’t help you much. Iam at work.


You should look here.
Maybe there is the answer

1 Like

@Taifun has already confirmed that it is content uri and you have to convert it to file path to make it work.

@vknow360 How?

I edited my answer above.
There are linked two topics now.

1 Like

Either using TaifunFile or FileTools.

1 Like

Thanks @mika! :blush: I’ll definitely read and let here know if it helped.


@vknow360 I am not familiar with TaifunFile extension, but with yours. Can you guide me?

Edit - Is this the appropriate block?

image


Thanks! :blush:

Have you tried this (I dont talk about using a extension):
“file:///storage/emulated/0/” + value ?

2 Likes

Hi, @Mika! :wave:

I tried, still nothing appearing.

image

Thanks! :blush:

Then you should try to use a extension for it.

Probably yes, attach value block to it and it should give you the path

1 Like

Yes that is the block I was talking about.

:upside_down_face: :upside_down_face: :upside_down_face:

3 Likes

@Boban let me try.

Thanks! :blush:

2 Likes

@vknow360 & @Boban

Nothing appears on the label, it’s blank. These are the blocks I used -

image

Thanks! :blush:

grafik