Skip to content

graphServiceClient.users(userId).photo().getContent().buildRequest().put(imageBytes) throws java.lang.ClassCastException #176

@Krisoblucki-okta

Description

@Krisoblucki-okta

Expected behavior

graphServiceClient.users(userId).photo().getContent().buildRequest().put(imageBytes) should not throw an invalid cast exception from BufferedInputStream to ProfilePhoto

Actual behavior

java.lang.ClassCastException: java.io.BufferedInputStream cannot be cast to com.microsoft.graph.models.extensions.ProfilePhoto

Steps to reproduce the behavior

graphServiceClient.users(userId).photo().getContent().buildRequest().put(imageBytes)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions