Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Armands L
50 PointsParseUser with profile picture
is it possible to create ParseUser with profile picture when user first time creates his account?
i followed the Ribbit tutorial and I don't understand how to store pictures value in the string so I can add it to the:
ParseUser newUser = new ParseUser();
newUser.setUsername(username);
newUser.setPassword(password);
newUser.put("name", name);
newUser.setEmail(email);
newUser.put("profilepicture", value)
I don't know how can I get that value because in Ribbit we store value in Intent and take them to the different Activity.
I can paste my code if it's necessary
1 Answer
Lawrence Fergus
1,653 PointsIf you continue the Ribbit application you will learn how to upload and download image files using a custom ParseObject. You can use the same principles and add fields to the user object to achieve a profile picture feature.
Armands L
50 PointsArmands L
50 Pointsso far I gave managed to upload images on the Parse but when I view them there is no file name and when I click on them there is this error:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
Error>
Code>AccessDenied</Code>
Message>Access Denied</Message>
RequestId>CCCD00B0492D3E54</RequestId>
HostId>
/NlQsnsNAAcGSCFOlHGHXxO9qJo3FvjmEaYj1mq4txHNcjKMeorfeuIQCUWBk4F9
/HostId>
/Error>