Jeff6301705
Posts: 0
Joined: Sun Oct 06, 2013 5:27 am

I have an issue with photos not loading into my app.

The issue I'm having is with the photo not loading from the local storage variable after it's created in the data base. In the database it's displayed as base64 but then once I try to set it to the image component that's listed in a grid, it does not show. It will only show the picture that acts as a placeholder, (use to be a blue flower). How do I change that, I followed the instructions ( I believe Ian posted on how to display photos), but that was with no success.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

I have an issue with photos not loading into my app.

Hello! How do you set image - from localStorage or DB? Could you alert variable you use to set image and send us alert screenshot? Please don't scroll alert (we need to see first symbols). If you set from DB please send DB screenshot. Also please post code you use to set image src (or mapping screenshot if you set from DB).

Jeff6301705
Posts: 0
Joined: Sun Oct 06, 2013 5:27 am

I have an issue with photos not loading into my app.

I have saved the images to the database once it's taken with the camera. Image Image Image

These are the services that I have going to those photo areas.
Would it make a difference if there was two list services on the page and both of them were mapping the same thing to the same area?

Meaning that in the photo labeled photo list, that is actually a different list service from the one on photo list service 2 that is one that was created to list the photo after taking it with your camera in the previewer.

So to answer the question, yes I'm pulling the image from the database, and then listing it in a local storage variable. Some help would be appreciated.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

I have an issue with photos not loading into my app.

Hi Jeff,

Could you please share the application with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a?

Jeff6301705
Posts: 0
Joined: Sun Oct 06, 2013 5:27 am

I have an issue with photos not loading into my app.

This app is already shared, it's called Picks.
the page that I'm having the issue with is on Customer_Information_Page

Thanks

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

I have an issue with photos not loading into my app.

Hello! Sorry for delay. We're working on it.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

I have an issue with photos not loading into my app.

In service PICKS_CustomerList_list_service there is a wrong response structure (you've changed it manually, but response is formed according to the actually received data). So it doesn't work. Parameter photo, photoname, CustomerNotes should be within $. To do that click button with + sign (see the screenshot) and fill in column name.
Image

Jeff6301705
Posts: 0
Joined: Sun Oct 06, 2013 5:27 am

I have an issue with photos not loading into my app.

Ok I have made that change and set the variable to it, tested it on the computer, not on the device and still nothing, I had the page set to the customer information page, and I'm pretty sure that the customer that was on that page didn't have a photo attached to it. So, I've reset the page, if you click on the Saturday tab then view customer info there should be a photo of a key board showing up there, and there's not. Could it be that for some reason it's not reading the variable like it should? I've had that issue with the customers first name label.

Jeff6301705
Posts: 0
Joined: Sun Oct 06, 2013 5:27 am

I have an issue with photos not loading into my app.

Just wondered if you've found anything else that would indicate why this still isn't working?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

I have an issue with photos not loading into my app.

Hello! Sorry for delay. From Bryant_Saturday page by clicking on View Information button we navigate to CUSTOMER_INFORMATION_PAGE page. If you check developers console there is the following response pre[{"ADDRESS":"13586 Lakeview Dr","CITY":"WEST DES MOINES","DAY_OF_THE_WEEK":"TUESDAY","EMPLOYEE":"USER1","FIRST_NAME":"Atul","LAST_NAME":"CHAWLA","NOTES":"note","PHONE_NUMBER":"440-0606","STATE":"IOWA","createdAt":"2013-09-16 00:32:47.327","id":"523651afe4b04f1851bba021","_updatedAt":"2013-10-24 18:45:07.982"}]/pre
That means photo column for this record is empty, so it's missing in response and there is no image on screen. Please check DB data and/or app logic. Do you request/receive correct data?

Return to “Issues”