Bitmap to jpg in memory?
-
Hi. Is it possible to convert a bitmap held in memory to jpg, also held in memory?
-
Hi. Is it possible to convert a bitmap held in memory to jpg, also held in memory?
Hi, I assume ur bitmap is in form of array of bytes in that case u can convert it to jpg using............... Dim wstWriter1 As New FileStream("c:\abc.jpg", FileMode.Create) Dim bwWriter As New BinaryWriter(wstWriter1) bwWriter.Write(pi_arrbyteFiles) bw.close() wstWriter1.close() I hope this is what u want......................:-> regards, Ritesh
-
Hi, I assume ur bitmap is in form of array of bytes in that case u can convert it to jpg using............... Dim wstWriter1 As New FileStream("c:\abc.jpg", FileMode.Create) Dim bwWriter As New BinaryWriter(wstWriter1) bwWriter.Write(pi_arrbyteFiles) bw.close() wstWriter1.close() I hope this is what u want......................:-> regards, Ritesh
Well not exactly…. I have bitmap in memory (byte array) Now… I want to convert the bytes (the bitmap) to a jpg picture, without saving it to disk first. Like using a codec