android


Android Download File Error Amazon S3


I uploaded video files into the S3 Amazon bucket, and I'm trying to download the S3object and parse the data into a file using the code below:
InputStream reader = new BufferedInputStream(object.getObjectContent());
File file = new File("media");
OutputStream writer = new BufferedOutputStream(new FileOutputStream(file));
int read = -1;
while ((read = reader.read()) != -1) {
writer.write(read);
}
writer.flush();
writer.close();
reader.close();
InputStream is = null;
try {
is = new FileInputStream(file);
is.close();
However, I am faced with a java.io.FileNotFoundException: open failed: EROFS (Read-only file system) error, and I am not sure why. Can anyone explain why?
I referenced the code from: AWS S3 Java SDK - Download file help

Related Links

Linkedin authentication showing blank screen on 2nd step verification in android
Android Firebase list data from keys
How to change the default icon of OptionsMenu in android?
How to move a button along x-axis while using ObjectAnimator
android.view.InflateException: Binary XML file line #36: Error inflating class fragment
Android: ImageView with centerCrop scale has not the same behavior on 4.1.1 and 4.4.4 (Android SDK)
How to fire event when user enter particular location?
Toggle state after n clicks in t seconds
Jittery zooming in a VewGroup
Upload image with android-upload-service
Android Data-Tables
System.getProperty(“http.proxyHost”) return different values in different processes
spinner opens upwards when using custom spinner
Android get phone number from contact list
How can I receives a push message when my applicaiton is dead by using Google Firebase Cloud Message
Locale returns to Default

Categories

HOME
paraview
prism
c++11
fpga
rsa
serialization
r-googlesheets
ms-access-2016
mips
echo
frontend
boto3
arangodb
google-schemas
reactive-programming
ibeacon-android
pega
text-mining
opengl-es-3.0
xcodebuild
php-5.6
stellar.js
glyphicons
dynamic-sql
feathersjs
android-7.0-nougat
soci
production
apache2.4
symbols
kendo-mobile
libigl
inno-download-plugin
hta
ckfinder
flooding
ms-access-2003
android-things
errbot
alm
event-flow
python-2.6
complex-numbers
sql-server-2000
hibernate-search
openerp-7
openproject
diacritics
mongoose-schema
c9.io
wmp
microsoft-metro
opencmis
ntvs
launchctl
manova
convex-optimization
azure-cli
bbpress
d3-force-directed
vibrate
javafx-css
restore
ziparchive
xcode-server
vulcanize
signalr.client
windows-azure-queues
drawstring
dup
eigenvector
clipboard.js
cfchart
nss
query-by-example
nullable
halcon
spring-retry
dynatree
java-money
r-package
google-books
opserver
uncompress
rdflib
bufferedinputstream
strawberry-perl
winginx
gnumeric
sbcl
ecslidingviewcontroller
android-usb
unit-of-work
dolby-audio-api
pclzip
swfobject
web-notifications
iboutlet
extconf.rb
fitbounds
cross-database
metaweblog
binomial-heap
ajax-polling
sifr3
java1.4
online-storage

Resources

Encrypt Message