Basit Khan

Basit Khan

  • NA
  • 336
  • 122.5k

How to reduce the size of Binary image.

Aug 3 2016 1:16 PM
hi,
 
I have store binary image in my database. the sizes(width&height) are different different in database.
 
now i want to show the image, while showing the image i want to reduce the size.
 
Dim abc As String
abc = System.Text.Encoding.Unicode.GetString(dr("Image2"))
 
'then the result is
picture.image="data:image/gif;base64,R0lGODlhEAAOALMAAOazToeHh0tLS/7LZv/0jvb29t/f3//Ub//ge8WSLf/rhf/3kdbW1mxsbP//mf///yH5BAAAAAAALAAAAAAQAA4AAARe8L1Ekyky67QZ1hLnjM5UUde0ECwLJoExKcppV0aCcGCmTIHEIUEqjgaORCMxIC6e0CcguWw6aFjsVMkkIr7g77ZKPJjPZqIyd7sJAgVGoEGv2xsBxqNgYPj/gAwXEQA7"
 
above is the example to show the image.
 
Thanks
Basit. 

Answers (2)