-
Notifications
You must be signed in to change notification settings - Fork 145
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
loadBytes on Resource #42
Comments
Hi, yes, the Resource APIs are not done yet. Future versions of better-files would have resource APIs similar to the files. For now, I think this would work using val bytes: Iterator[Byte] = this.getClass.getResourceAsStream("myresource.json").bytes Duplicate of #9 |
See:
|
Works fine, thank you. On 2 November 2015 at 03:44, Pathikrit Bhowmick notifications@github.com
|
Forgot to mention, you might want |
Hi,
First thank you for your library it makes life working with files much easier :-)
So what would be the recommended way (without converting char to byte) to get bytes from a resource (fetched through resource"/myresource.json") as loadBytes only exist on File class
Thanks
Jakub
The text was updated successfully, but these errors were encountered: