Changed attachment from File to InputStream