How to transform a piece of text into an image

Asked

Viewed 193 times

0

I have 1 string in java that is receiving 1 json array , which has several images together with the link of the respective ones, I have another string that has text and within that text there is X number of images that are identified by image 1 , image 2 , image 3 , Picture 4...image 1000 .

I wanted to know if it would be possible and how it would be possible for me through the Description string to change whenever image 1 appears, image 2 ... imagem1000 to create an image and replace that portion of text.

  • 1

    Your question is confused. At least I can’t understand what you want.

  • I will repeat myself then and I hope to be more enlightening this time. I want my program to automatically recognize and replace a piece of text that belongs to a string named "Description". In this case the piece of text I intend to replace will be "image 1" and "image 2" until there are no more images in this string "Description" can even be "image 999". I want to replace an image with the image link in my json array .

  • You want a View with the text of description where each of the occurrences of image1, *imagem2, etc., has been replaced by the image itself?

  • Exactly that

  • What is the size of each image? What would be the formatting/layout of the text and images?

  • http://www.grifin.pt/projectoamg/Conexao.php

  • Variable images left to join the rest of the link but hopefully to understand

  • Why don’t you just replace the string?

  • I don’t know what to replace so that the images I have in the json array appear .

  • Man, I’m sorry, but I can’t understand your question. I couldn’t understand what you were trying to do (and yes, I looked at your JSON). Try to have that revised one in your newsroom. In particular, how do you have images inside the description text? What exactly does an image look like inside a text? Is it the image link/url or something else? And where do you speak of "changing whenever picture 1, picture 2, etc" appears, what exactly do you mean by "changing"? By the way, "image 1" is something that appears directly and literally in the text, is a link or something else?

  • Here is a print of my app, I want to replace image 0 , image 1 , image 2 that appears in print with images that are in json that is an agenda there are several events in json https://scontent-mad1-1.xx.fbcdn.net/hphotos-xtp1/v/t1.0-9/s720x720/11146101_910710668970237_828981595841706875_n.jpg?oh=5ac35fc46424bbfe6c173cad84f7883e&Oe=55EDCA4Fhttps://scontent-mad1-1.xx.fbcdn.net/hphotos-xtp1/v/t1.0-9/s720x720/11146101_910710668970237_828981595870416875_n.jpg? oh=5ac35fc46424bbfe6c173cad84f7883e&Oe=55EDCA4F

Show 6 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.