PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → HTML Pictures
HTML Pictures
Iniciado por Willy Hermans, 21,abr. 2013 19:16 - 6 respuestas
Publicado el 21,abril 2013 - 19:16
Hello,

Is it possible to add a picture in an HTML control.

It would be amazing if the picture could be loaded from a hyperfile

The standard examples does not work.

Thanks

Willy Hermans
Publicado el 21,abril 2013 - 20:08
Hi Willy

it's an html control, which means that you can do anything supported by
html... So yes, you can add a picture, but it has to have a URL for
that, as it's the way html works.. So the simple way would be to extract
your picture in a subdirectory of your site, and add the corresponding
url in your control

Best regards


--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

More information on http://www.fabriceharari.com


On 4/21/2013 12:16 PM, Willy Hermans wrote:
Hello,

Is it possible to add a picture in an HTML control.

It would be amazing if the picture could be loaded from a hyperfile

The standard examples does not work.

Thanks

Willy Hermans
Publicado el 24,abril 2013 - 16:17
Thanks.

That means that that subdir can contains several 1000's pictures after a few months.

End users must have the abillity to upload a picture.

It is a CMS. A local sportclub can add an article with a picture.

When they add the picture it is not on my server.

Is there a working system available.

Already many thanks.

Greatings

Willy Hermans
Publicado el 24,abril 2013 - 17:06
Hello Willy


That means that that subdir can contains several 1000's pictures after a few months.


Yes... So? How is that a problem? You can have several subdir (per
creatorr, per subject, per...) if you prefer, or a picture directory
with everything in it... It's the standard way for aweb applicaiton

End users must have the abillity to upload a picture.

It is a CMS. A local sportclub can add an article with a picture.

When they add the picture it is not on my server.

As long as you have a valid URL for the picture, you can point to it in
html, so again, I'm not sure I understand the problem

Best regards

Fabrice

Is there a working system available.

Already many thanks.

Greatings

Willy Hermans
Publicado el 25,abril 2013 - 17:16
Thanks again.

Sorry this is new to me.

I have to do this step by step.

It was my personal preference to add the pictures in a database.

But indeed, I will have to do it via subdirs
\pictures\login-1
\pictures\login-n


Is it just that I


- 1st have to make a map for the login
- 2nd upload the pricture
- 3rd write the article and choose the picture from the server map

- So the auteur must have acces to a server map.

Thanks
Willy
Publicado el 25,abril 2013 - 17:37
Hi Willy


- 1st have to make a map for the login
- 2nd upload the pricture
- 3rd write the article and choose the picture from the server map

- So the auteur must have acces to a server map.


I do not think that's the case...

First, the question is whether the article author is also the one
uploading the image...

If yes, the same page can be used to write the article, then upload the
corresponding image, preview the result, and validate the whole thing (a
step by step wizard would work fine here)...

If no, then the one uploading the picture should reference it in the DB
(keywords, article name it is purported for, writer it is purported for,
....) so that when the writer work on his article, he has immediate
access to the corresponding image...

In any case, nobody has to know WHERE the image is on the server, as
long as the DB has the corresponding path in it, and your app is able to
display the corresponding image when needed

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

More information on http://www.fabriceharari.com


Thanks
Willy

Publicado el 03,mayo 2013 - 12:43
It was a huge job but it is done and ...
it works.

So many thanks again.

Now I want to do the next step.


When I use a picture as background, webdev asks me to optimese it. Webdev autmatically resizes the picture and changes the resolution to 72 dpi etc.

Is this code somewhere available. I want users who are uploading picture assist to do this easy, if possible without other 3th party programs to resize etc.


Thanks,

Willy