I have sql database with table Images, in that table there are 2 Columns ID (identity), DisplayImage (image). Table has 2 rows for first row i have written insert into Image values(1,'Libraries\Pictures\Lotus.jpg') and 2nd row as INSERT INTO [dbo].[Image] ([Id],Images) SELECT 2, (select * FROM OPENROWSET(BULK 'C:\Users\Public\Pictures\Sample Pictures\Tulips.jpg', SINGLE_BLOB) AS BLOB) Here is the code for reading the image WebClient instanceHTTP = new WebClient(); Uri MyUri = new Uri("http://localhost:52293/WebSite/ImageHandler.ashx?ImageId=" + TextBox5.Text); //TextBox5.Text for id i.e 1 or 2 Stream returnValue; returnValue = instanceHTTP.OpenRead(MyUri); System.Drawing.Image MyImage = System.Drawing.Image.FromStream(returnValue); // Error if id=1 used i.e normal insert bytearray = imageToByteArray(MyImage); MyImage.Dispose(); if …

Member Avatar
Member Avatar
+0 forum 1

How to retrive Image from DB Using and handler and Embed that image in Email, so that in future if image in DB changes so it should not affect to image which has been Mailed earlier

Member Avatar
Member Avatar
+0 forum 2

Hello, How to show search results from Database **WITHOUT** Gridview. I am making property dealing site in which when user seraches the property the results should come on the webform **not** in a gridview control How can i acheive this???

Member Avatar
Member Avatar
+0 forum 2

I am creating a website where i want to send email notification of every website activity like Facebook How can i send automatic emails to logged in user? Thank You.

Member Avatar
Member Avatar
+0 forum 2

Hello, How to write Code into Hyperlink of datagridviewcell I have a datagridview which is connected to the database and data is coming from the database than how to write code inside the hyperlink???

Member Avatar
Member Avatar
+0 forum 1

Hi, Please someone explain me what is viewstate and postback properties in simple words. I have sean many notes but still confused. Please explain with example and considering me as totaly new to IT (actually i am not). Please help i am very confused. Thank you.

Member Avatar
Member Avatar
+0 forum 2

Hi, I am confused between razor and asp.net coding. Asp.net code itself is a server side code so why it is said that razor code is server side embedding code for creating dynamic web pages? Normal asp.net code also runs at server side so what is the need for razor than?

Member Avatar
Member Avatar
+0 forum 1

What is the need for operator overloading?

Member Avatar
Member Avatar
+0 forum 13

Hello, I have created project in c# and i want to use connection string stored in app.config file in all my form. I have wrote that connectionManager code but it gives different output (not proper output) and sometimes it gives exception what to do?

Member Avatar
Member Avatar
+0 forum 16

How to bind selected columns to datagridview at runtime. I have written select * from tableName. And result i have stored in DataTable dt. Now i want only selected columns to be displayed in datagridview at runtime. I dont want to bound gridview at designtime.

Member Avatar
Member Avatar
+0 forum 4

Hi, i have netbeans 6.0.1 but when i just creat a file it gives error even at the line which comes by default. For example @Remote or javax.ejb i have uninstalled and installed it again than to the previous installtion effects remains as it is.

Member Avatar
Member Avatar
+0 forum 9

How to set case sensitivity in ms access database? I need it for password column.

Member Avatar
Member Avatar
+0 forum 10

Hello, how to set label location in top middle at run time according to the text length. For example i have one panel control of size 316,162 and one label at top it displays the security que from the database like what is your pet's name? Or who is your favourite childhood hero? So according to the text length it should come in the middle. For long text no probs but for small it display in left only.

Member Avatar
Member Avatar
+0 forum 6

How to display data in datagridview starting from the record which we pass at runtime? In C# For example, there is 10 rows in a table. When i run the app i'll pass 5th record's value so it should show all data of table starting from 5th row.

Member Avatar
Member Avatar
+0 forum 8

The End.