Image display as link, instead of picture

Hello, I need help with my problem. I am trying to create an app for an online marketplace. I can view the image in the "view post" as a link instead of a picture. Can you help me solve this? I am a beginner. I would be really thankful if you're willing to help. Here is the code that I believe has some issues or is incomplete. I used CloudDB as the MIT database.

I can post it successfully

The image display as link, instead of picture

These are the codes:


imageName argument is empty in CreateElement block.

1 Like

I still cannot display the picture

Screenshot (1022)
Screenshot (1023)

1 Like

imageName should be a url or file path.

The images are uploaded by multiple users. There are no specific URLs or file paths.

Let us take a step back. Are you intending to upload the image to cloudDB, so that all users can see the image?

This doesn't appear to be happening in your blocks...

Uploading to somewhere online and then showing image is a different thing.
But first, I strongly recommend you explore topics related to Listview in community.
Start with the basics.

When a user clicks on the 'Post' button, all the details, including the username, title, description, and image should be displayed in the list view. However, instead of displaying the image itself, it shows the URL. I'm unsure about how to resolve this issue.

Thank you for the advice. I'll explore more about Listview topics. I appreciate your guidance.

You'll have to understand that adding image url to descriptionText argument won't show image.
Put it in imageName argument.

I made changes, but the picture didn't appear at all.

photo_2023-10-15_17-21-37

I have indicated to move select list item block only. :slightly_smiling_face:

Is it like this? I'm still unable to display the picture.

Screenshot (1025)

Can you upload your aia here? It seems that your blocks problem is something else

I can found the problem with taking a detailed look at project

also I want to test it

See this example:

BLOCKS

SCREEN

image

This is the aia

marketplaceKpmb (4).aia (130.6 KB)

Probably an issue with file:// ?

Works with file:// too :slight_smile:

image

Well, some devices / Android versions seem to require a full path.
In this respect, you are usually on the safe side with a full path.

hi @icha22
your problem is here:

I changed listview layout to:

and also change:


(image is draggable)
I tested it on Galaxy A10s and it worked fine

aia here!

marketplaceKpmb_2.aia (162.9 KB)