Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is local file access supported by XMLHttpRequest for Android? #12

Open
yonekawa opened this issue Jul 9, 2013 · 5 comments
Open

Is local file access supported by XMLHttpRequest for Android? #12

yonekawa opened this issue Jul 9, 2013 · 5 comments

Comments

@yonekawa
Copy link

yonekawa commented Jul 9, 2013

I need to get assets/build/foo/bar.file by XMLHttpRequest with Ejecta-X.
I tried this but it raises "Couldn't open file"

var request = new XMLHttpRequest()
request.open("GET","file:///android_asset/build/foo/bar.file");
request.send()

Is local file access supported by XMLHttpRequest?

@3dseals
Copy link
Contributor

3dseals commented Jul 9, 2013

not supported, need cross java and c++
could you leave you email or contact way
I'll send you a patch how to call java from C++ in ejecta js

@yonekawa
Copy link
Author

Thank you!
my email is here.
https://github.com/yonekawa

@aogilvie
Copy link
Contributor

Requires #58 - will fix for any text based file.

@aogilvie
Copy link
Contributor

#58 is merged. Some small work left to do to add support for images etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants