2
Answers

Can anybody help me to solve this?

Sapna

Sapna

14y
13.4k
1
I create a table "EmployeeProfile" in SQL and insert an image into that table as Employee Photo see below the complete query:

Insert EmployeeProfile (EmpId, EmpName, EmpPhoto)
Select 1001, 'Vadivel',
BulkColumn from Openrowset( Bulk 'D:\Image\VD.bmp', Single_Blob) as EmployeePicture
select * from EmployeeProfile

RESULT:

blo4.gif
You can see that the image is store in the form of HEX data now I want  to see this image in VB.NET. Can anybody help me to do that.
Answers (2)
0
Hirendra Sisodiya

Hirendra Sisodiya

NA 8.8k 3m 14y

Suppose you add one text file GetRecords.txt in resoureces.resx of windowApplication1
 you can read this text file as :
string str = WindowsApplication1.Properties.Resources.Get_Records;
 
thanks
Please mark as answere if it helps
Accepted
0
Dude

Dude

NA 4 0 14y
Oh my God, i didn't even thought this way was possible........ I was trying to get into the with FileStream & Stream......... it is unbelievably easy crap!!!
Thank You much for attention and help, Hirendra!
By the way, If I use this text file as resources(data) in my application, can I use it for storing, modifying and retrieving data from?