<cannot create file from contentbytes received fro...
# stackoverflow
u
cannot create file from contentbytes received from microsoft graph api in java android So I have been working around with Microsoft Graph API's. I'd like to get email attachments from this API GET /me/messages/{id}/attachments/{id} This is the API which I am using. I am getting contentBytes encoded in Base64 How to create file from contentBytes in JAVA? Here is what I implemented to create the file which is not writing any thing in file try { if (f.exists()) f.delete(); f.createNewFile(); FileOutputStream fos = new FileOutputStream(f); fos.write(fileData);...