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 / January 2006

Tip: Looking for answers? Try searching our database.

Can I use images in a class?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Miguel Dias Moura - 31 Jan 2006 19:28 GMT
Hello,

I am using the profile in Asp.Net 2.0 to save complex types, i.e., a
class.
I am using an SQL 2005 database as my profile provider.

Can I use a file or image in a class and save it in my profile?
Should I do this?

Public Class Document

 Private _image As Image

 Public Property Image() As Image
   Get
     Return _image
   End Get
   Set(ByVal value As String)
     If _image = value Then
       Return
     End If
     _image = value
   End Set
 End Property

End Class

To be honest I have no idea if this would place the image file into the
SQL 2005 database as part of the profile of a specific user.

Instead, should I place the image/file in a folder and save its url in
the SQL database?

Could someone, please, help me out with this?

Thank You,
Miguel
sloan - 31 Jan 2006 22:18 GMT
The general of thumb is to save the url to the image in the database.

Now, with 2.0 and the image control that takes a byte stream, that may alter
slightly.

However, I still think, that for images that don't need super security, the
url is the better method.

..

However, if you wrote an app for a bank, where you could view check images,
then you would want to send that across as a byte stream, and store the
image in the db that way.

Just my opinion.

..

> Hello,
>
[quoted text clipped - 33 lines]
> Thank You,
> Miguel

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.