Hi Paul,

    I already made a blog about saving the image with LINQ
http://santhoshbu.blogspot.com/2010/10/inserting-and-retrieving-image-using.html
guess
this will be usefull. For further query contact me
 With Regards,
Never Say No,
Santhosh V.Kumar
+919840411410
http://santhoshvkumar.110mb.com/
"I am because we are"



On Mon, Feb 28, 2011 at 11:08 AM, The Master Mind
<[email protected]>wrote:

> 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
>

Reply via email to