Skip to content
rizcompeer edited this page Dec 9, 2016 · 14 revisions

S3 JAVA

http://www.ashishpaliwal.com/blog/2015/02/amazon-s3-listing-bucket-contents-programatically/

http://docs.ceph.com/docs/giant/radosgw/s3/java/

http://stackoverflow.com/questions/7679924/how-to-write-an-s3-object-to-a-file

================================================

makeDirS3(String Path, String DirName) return Type: boolean True if created or already exixts, false if not created

dirExistsS3(String Path, String DirName) return Type: boolean True if exists, False is does not exists

fileExistsS3(String Path, String Filename) return Type: boolean True if exists, false if does not exists

uploadFile(String S3Path, String LocalFilePath, boolean overwrite) Argument: overwrite - 0 means does not overwrite, 1 means overwrite return type: boolean true if file uploaded, false if not uploaded

copyFile(String S3Path, String S3Filename, String LocalPath, boolean overwrite) Argument: overwrite - 0 means does not overwrite, 1 means overwrite return type: boolean true if file copied, false if not copied

listFile(String S3Path) return type: string array - array of filename

listDir(String S3Path) return type: string array - array of Dirname

delFile(String S3Path,String S3Filename) return type: boolean true if file deleted, false if not deleted

delDir(String S3Path,String S3Dirname) return type: boolean true if Dir deleted, false if not deleted

https://thiscouldbebetter.wordpress.com/2013/07/03/converting-a-file-to-a-base64-dataurl-in-javascript/
http://fineuploader.com/demos.html
http://www.tricksofit.com/2014/10/save-base64-encoded-image-to-file-using-php#.VuFcsOJ97cc
http://www.freeformatter.com/base64-encoder.html

Clone this wiki locally