Skip to content

How to convert byte[] to a .jpeg image with ImageSharp? #1408

Answered by JimBobSquarePants
Acesteef asked this question in Q&A
Discussion options

You must be logged in to vote

I tried converting the byte[] to a .jpeg with the .SaveAsJpeg() method but its still a Image. I know i am doing something wrong, i just dont know what. I hope someone can give me a code example of how it is actually done.

I cannot actually understand what you want to do. You have an encoded image in the database so why do you need to load it with ImageSharp?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Acesteef
Comment options

@antonfirsov
Comment options

Answer selected by JimBobSquarePants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #1408 on October 30, 2020 15:56.