| Name | Value | Type | |
|---|---|---|---|
| ? | ReadTimeout | 'ms.ReadTimeout' threw an exception of type 'System.InvalidOperationException' | int {System.InvalidOperationException} |
| Name | Value | Type | |
|---|---|---|---|
| ? | WriteTimeout | 'ms.WriteTimeout' threw an exception of type 'System.InvalidOperationException' | int {System.InvalidOperationException} |
C#
if(dataSet1.Tables[0].Rows.Count > 0)
{
//bunifuPictureBox6.Image = null;
if(dataSet1.Tables[0].Rows[0][2] != System.DBNull.Value)
{
photo_aray = (byte[])dataSet1.Tables[0].Rows[0][2];
MemoryStream ms = new MemoryStream(photo_aray);
bunifuPictureBox6.Image = Image.FromStream(ms);
bunifuPictureBox6.SizeMode = PictureBoxSizeMode.StretchImage;
}
}

Rajanikant HawaldarRank #110 · 20.2K reputationPosted Nov 10, 2022, 12:57 AM EST
Use UI thread to set image
Guest UserRank #1,881 · 787 reputationPosted Nov 10, 2022, 6:24 AM EST
Can u send me code or post link
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Nov 10, 2022, 8:07 AM EST
bunifuPictureBox6.Invoke(new MethodInvoker( delegate() { bunifuPictureBox6.Image = Image.FromStream(ms); bunifuPictureBox6.SizeMode = PictureBoxSizeMode.StretchImage; }));Guest UserRank #1,881 · 787 reputationPosted Nov 10, 2022, 9:20 AM EST
can u send me full code
Guest UserRank #1,881 · 787 reputationPosted Nov 10, 2022, 9:46 AM EST
How to use tell me
I will try but same error
Guest UserRank #1,881 · 787 reputationPosted Nov 10, 2022, 7:10 PM EST
I Will Upload Image where i call data Check Desktop.zip File
USE [BiometricDB] GO /****** Object: StoredProcedure [dbo].[sp_GetTop3VolunteerReport] Script Date: 11/11/2022 05:08:39 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[sp_GetTop3VolunteerReport] AS BEGIN -- Top 3 Volunteer Report SELECT TOP 3 v.[displayfullname] AS [Full Name], SUM(t.duration) AS [Total Duration], CAST(v.[profilephoto] as Varbinary) AS [Profile Photo] FROM tblattendancelog t INNER JOIN tblvolunteer v ON v.[volunteerid] = t.[volunteerid] WHERE t.[type] = 'Present' GROUP BY v.[volunteerid], v.[displayfullname], CAST(v.[profilephoto] as Varbinary) ORDER BY SUM(duration) DESC ENDRajanikant HawaldarRank #110 · 20.2K reputationPosted Nov 11, 2022, 12:48 AM EST
https://www.c-sharpcorner.com/UploadFile/e628d9/inserting-retrieving-images-from-sql-server-database-without-using-stored-procedures/
Guest UserRank #1,881 · 787 reputationPosted Nov 12, 2022, 1:03 AM EST
i will try all method please help me
Guest UserRank #1,881 · 787 reputationPosted Nov 12, 2022, 1:04 AM EST
RAJANIKANT HAWALDAR
Can u help on Anydesk