ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  VB.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
hello 
dear friends my problem is that i want to save images that 
is pictures in SQL server using vb.net can any body help me 
to do so please 
 Question Submitted By :: Ijaz_sh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: hello dear friends my problem is that i want to save images that is pictures in SQL server using vb.net can any body help me to do so please
Answer
# 1
step1) place one fileUpload control from tool box
step2) in it's Button click event
    If FileUpload1.PostedFile Is Nothing  Then
                Response.Write("no file posted")
                
            Else
               Here Convert that image as byte and pass it
to function.
                Dim con As SqlConnection
                Dim cmd As SqlCommand
                Dim ds As New DataSet

                con = New
SqlConnection(ConfigurationManager.AppSettings("connectionString"))
                cmd = New SqlCommand("insert into tablename
values(@image_in), con)
 Dim imageByte(FileUpload1.PostedFile.InputStream.Length) As
Byte
               
FileUpload1.PostedFile.InputStream.Read(imageByte, 0,
imageByte.Length)
                cmd.Parameters.AddWithValue("@image_in",
imageByte)
                con.Open()
                cmd.ExecuteNonQuery()
                con.Close()
               
                Response.Write("file is inserted")
            End If
 
Is This Answer Correct ?    0 Yes 0 No
Govind
 

 
 
 
Other VB.NET Interview Questions
 
  Question Asked @ Answers
 
how to connect crystal report with vb.net ? Patni2
concept of object oriented programming Patni5
What is VB.Net? Ksb3
What does VS.NET contains ? Infosys3
What is versioning in .NET?  2
What is MSIL  4
hi dear ? MY problem is that i m developing software for Library. and i want to connect a third party software with my VB.net program in order to calculate DDC number.I dont know how to do this if any body can help me please?  1
Hi I am planning to take interview in VB.net,can any one share your interview Questions for a Entry-level job. Regards Lina  3
How does you call and execute a SP in .NET?  2
What is CLR?  11
What are Major Feature of VB.NET Over C#.NET  9
Where would you use Abstract class and Interface?  1
Can we use a crystal report into a another crystal report  6
if user enters 1 or 2 or any other number in digit format in next textbox it should show the answer in word reading like if enters 12 answer should be twelve  4
hello friends.. when i deployment my project in the client machine that is successful but whenever i try to run my project using .exe file then it gives me error "<filename>.exe is not a valid win32 application." what i do somebody halp me pls  1
how to connect crystal report with vb.net ? Patni6
How does you get record no from 5 to 15 from a dataset of 100 records? ABC2
In order to get assembly info whcih namespace we should import?  1
What is the Common Language Runtime? Ksb8
what is the base class of .net?  6
 
For more VB.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com