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
Ian Z
14,584 PointsStoring static content (audio files) online and then calling for them when needed in my app. Parse or other method
Hi i've got about 200+ sound files needed for my app, in order to save space i want to only download the ones needed for each lesson as the user starts it.
I'm kinda confused on where to start with this, I tried using the Parse Data browser and creating a new class AudioFile with a file parameter. But when i try to upload the mp3s it says "Drop your file here! J.S.O.N. and C.S.V. files are supported".
I tried to drop in an mp3 but i get an error "invalid file extension".
I have no idea how to convert mp3s to json on my computer before dropping them in.
Can anyone point me in the right direction on how I can either convert to JSON/CSV or another way to store my data online? another example of an app that does this is Duolingo, they download the pronunciations for each lesson as you start it.
thanks for any help
1 Answer
miguelcastro2
Courses Plus Student 6,573 PointsYou should use an established cloud hosting environment to store your files. I would recommend Amazon S3 because it is inexpensive and reliable. Use the S3 SDK to access your files securely and quickly. The great thing is all you need to do is upload your files via something like FTP, give the file names a pattern that you can use to easily associate them with a part of your program, and hook in the SDK to your Android app to download them to your device.