1
我正在尝试使用parse.com为Android创建平板电脑应用。 我不擅长的Android,但是我正在努力获取和使用对象是:parse.com保存图像
ParseFile applicantResume = (ParseFile)anotherApplication.get("applicantResumeFile");
applicantResume.getDataInBackground(new GetDataCallback() {
public void done(byte[] data, ParseException e) {
if (e == null) {
// data has the bytes for the resume
} else {
// something went wrong
}
}
});
好像我需要保存新的对象,我只是得到了,但我有它保存这样的问题:
FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);
fos.write(data.getBytes());
fos.close();
任何想法如何保存数据?解析API说它是byte [],不能使它工作:(