Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

Image Loading from SQL Server into ASP.NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Umeshnath - 03 Jul 2007 15:10 GMT
Hi,
I have employee details stored in SQL DB includes emp id , name, age, sex
and photo (stored as image binary format).

Now in text box I am entering empid and click of a button I want to get all
the details into a aspx page

Name         XXXXX
Age        YY
Sex        ZZ
Photo         Photo should be displayed here

Please advise me how can I do this, all the other data I can populate but
how I will load employee photo. Photo should be displayed in the same page.

Thanks in advance
Peter Bromberg [C# MVP] - 03 Jul 2007 15:18 GMT
Here is one way to do this:
http://www.eggheadcafe.com/articles/20050911.asp
-- Peter
Site:  http://www.eggheadcafe.com
UnBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder(BETA):    http://www.blogmetafinder.com

> Hi,
> I have employee details stored in SQL DB includes emp id , name, age, sex
[quoted text clipped - 12 lines]
>
> Thanks in advance
sloan - 03 Jul 2007 15:33 GMT
Here is another caveat on the issue:

http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_f
rm/thread/f745d64932a17be1/38ef1b1401c5b53a#38ef1b1401c5b53a


from Jeff Prosise.

However, your "bulk solution" (for multiple images in a grid/bound control)
was good reading material as well.

> Here is one way to do this:
> http://www.eggheadcafe.com/articles/20050911.asp
[quoted text clipped - 19 lines]
> >
> > Thanks in advance
Braulio Diez - 03 Jul 2007 15:22 GMT
Hello,

 You have two possiblities:

   - Store the images in a folder of your website and store the link to
them in a field of your database (easy solution, and you don't have to fight
against performance problems storing blobs in your DB).

  -  You can phisically store it in your DB, take a look at this article:

http://www.ftponline.com/vsm/2002_07/online/hottips/esposito/

 HTH
   Braulio
/// ------------------------------
/// Braulio Díez
///
/// http://www.tipsdotnet.com
/// ------------------------------

> Hi,
> I have employee details stored in SQL DB includes emp id , name, age, sex
[quoted text clipped - 12 lines]
>
> Thanks in advance

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.