Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 3 Jahren, 8 Monaten
Letzter Beitrag:
vor 3 Jahren, 8 Monaten
Beteiligte Autoren:
Yogi Yang, Arie, Fabrice Harari, Geoff B

Retriving Photo from WebService in WM17

Startbeitrag von Yogi Yang am 01.10.2014 10:52

I am using the superb php4wm class and php web service for retrieving data from remote MySQL server.

All things are working a bit slow but just fine.

Now I have a need to load photos and show them. I am actually storing the photos in question in a separate folder and storing their file names in DB.

How can I load a photo that resides in a folder on web server in my Android app?

Any ideas please.


Yogi Yang



you'll have to modify the web page used (in your case the php page)...

Send it a request for a specific file, and the page will read the file, and send it back.

with an awp page, it's as simple as floadBinary + stringdisplay. With a php page, you are on your own...

Of course, if you want to include the image in an existing flow of information, you will have to encode64 it in the middle.

Best regards

von Fabrice Harari - am 01.10.2014 12:24

Thanks for the hint. I have got a que from your hint!

I think we can retrieve the Photo file name from MySQL server using web service and then load the photo directly from web server if the Image control supports http file names....

I will have to check this out though.

Once again thanks for the hint.


Yogi Yang

von Yogi Yang - am 01.10.2014 12:51
Yogi, can you let us know how you go, I need to do the same thing!

von Geoff B - am 02.10.2014 23:58
Sure. I will update my status here once this feature is implemented properly.


Yogi Yang

von Yogi Yang - am 03.10.2014 05:07

You are talking about a webservice.
I would "ask" the webservice to put the requested file somewhere on your webserver and then show the image like this

IMG_NoName1 = HTTPGetResult(httpResult)

No need for conversion/encoding.

von Arie - am 03.10.2014 09:48

Thanks for the code sample.

That is exactly what I am try at the moment.

von Yogi Yang - am 03.10.2014 13:33
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.