hiii you have to convert the images in to binary .....
Public Function ImageConversion(ByVal image As System.Drawing.Image) As
Byte()
Try
Dim Doc As Byte()
'Dim new1 As System.Drawing.Image
Dim memoryStream As System.IO.MemoryStream = New
System.IO.MemoryStream
image.Save(memoryStream,
System.Drawing.Imaging.ImageFormat.Jpeg)
Doc = memoryStream.ToArray
image.Dispose()
memoryStream.Dispose()
Return Doc
Catch ex As Exception
objCommFun.ErrorMessage=ex.Message
End Try
End Function
from that function u'll get the document into binary format.
Make the table
doc as datatype image
save it to database..
On Fri, Feb 25, 2011 at 8:38 PM, pravin khandagale <[email protected]
> wrote:
> hi all,
>
> I have a project in asp.net in which i have to add employees ID photos
> in the database.
> so how can i do this?
>
> pravin.
>
--
Rakesh Hendre,
Sr. Software Architect
Brilliance Software Systems.
http://www.brilliancesoftwares.com/
Mob : 9960001862