2017-10-27 19 views
-1

ファイルパスを文字列として取得してテーブルに格納してみました。 テーブルからフェッチしている間に、テーブルから新しいファイル(パス)を作成しています。 ファイルがエラー(no such file or directory exists)を持つサーバー(Amazon s3)にアップロードされたとき。ファイルをSQLiteテーブルに格納する方法

//To Store file n table 
String path = file.getPath(); 
/*above path is stored in table*/ 
//Getting file from path 
File file = new File(path) 
+0

は、あなたがしようとしているものをいくつかのコードを投稿してくださいことはできますか? – Krutik

+0

@Krutik私はコード – Prasad

+0

を追加しましたまだ明確ではありませんが、いつか私たちはこの希望をこのヘルプで確認しています。https://stackoverflow.com/questions/13209494/how-to-get-the-full-file-path-from- uri – Krutik

答えて

0

それは動作しますが、

//To Store file n table 
String path = file.getPath(); 
/*above path is stored in table*/ 
//Getting file from path 
File file = new File(path) 
関連する問題