Hi @Amol Harde,
To download file from one drive in MS Graph using Java: Download the contents of the primary stream (file) of a driveItem. Only driveItems with the file property can be downloaded.
GraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
InputStream stream = graphClient.customRequest("/me/drive/items/{item-id}/content", InputStream.class)
.buildRequest()
.get();
For more information: https://learn.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0&tabs=java#example
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".