Skip to main content
adicionou 8 caracteres ao conteúdo
Fonte Link
Victor Laio
  • 2,1mil
  • 2
  • 16
  • 36

string base64string = "BLOB_String";info.GetString(6);
byte[] blobImage = Convert.FromBase64String(base64string);

using (MemoryStream ms = new MemoryStream(blobImage))
{
 pictureBox1pictureCadastro.Image = Image.FromStream(ms);
}

string base64string = "BLOB_String";
byte[] blobImage = Convert.FromBase64String(base64string);

using (MemoryStream ms = new MemoryStream(blobImage))
{
 pictureBox1.Image = Image.FromStream(ms);
}

string base64string = info.GetString(6);
byte[] blobImage = Convert.FromBase64String(base64string);

using (MemoryStream ms = new MemoryStream(blobImage))
{
 pictureCadastro.Image = Image.FromStream(ms);
}

Post restaurado por Victor Laio
adicionou 38 caracteres ao conteúdo
Fonte Link
Victor Laio
  • 2,1mil
  • 2
  • 16
  • 36

string base64string = "BLOB_String";
byte[] blobImage = Convert.FromBase64String(base64string);
File.WriteAllBytes
using (@"C:\Users\user\Desktop\fic.jpg",MemoryStream ms = new MemoryStream(blobImage))
{
 pictureBox1.Image = Image.FromStream(ms);
}

Fonte: https://stackoverflow.com/questions/9664474/convert-blob-string-to-jpg-file

string base64string = "BLOB_String";
byte[] blobImage = Convert.FromBase64String(base64string);
File.WriteAllBytes(@"C:\Users\user\Desktop\fic.jpg", blobImage);

Fonte: https://stackoverflow.com/questions/9664474/convert-blob-string-to-jpg-file

string base64string = "BLOB_String";
byte[] blobImage = Convert.FromBase64String(base64string);

using (MemoryStream ms = new MemoryStream(blobImage))
{
 pictureBox1.Image = Image.FromStream(ms);
}

Post removido por Victor Laio
Fonte Link
Victor Laio
  • 2,1mil
  • 2
  • 16
  • 36

string base64string = "BLOB_String";
byte[] blobImage = Convert.FromBase64String(base64string);
File.WriteAllBytes(@"C:\Users\user\Desktop\fic.jpg", blobImage);

Fonte: https://stackoverflow.com/questions/9664474/convert-blob-string-to-jpg-file