Photo Uploading in a windows form..!!

7 views
Skip to first unread message

aditya chavan

unread,
Nov 1, 2009, 1:57:09 AM11/1/09
to DotNetDe...@googlegroups.com
Hello,

I am new in this C#  .net platform.
I have a project in which i need to make a registration form which has a profile pic of a particular person. 
now in this i need to make such a application which would upload a pic of person by browsing folders and it should upload in the place where it is assigned. plus it should not take the path if the person open 
his/her's profile she should see her pic means a path independent pic. just like how we set any orkut profile pic or face book pic.

so can anyone help me with this how can i develope it.. or provide code for this.. if anyone have already developed it.
and ya one think its a desktop application its not connected through internet its in office network.

waiting for reply..!!

Regards

Aditya Chavan

Gunawan Hadikusumo

unread,
Nov 1, 2009, 5:57:19 AM11/1/09
to dotnetde...@googlegroups.com
250 $ for the services.......

aditya chavan

unread,
Nov 2, 2009, 6:29:23 AM11/2/09
to dotnetde...@googlegroups.com
hey can anyone help me my query posted before of photo upload. i need your assistant asap to complete my project.

ThanderMaX

unread,
Nov 2, 2009, 11:14:13 AM11/2/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Just a few silly thought ...

1) Copy it to ur app folder/subfolder
2) Store the path and reuse.
3) Store in DB as BLOB
4) Upload it to tinypic.com and access it


:-)


On Nov 2, 4:29 pm, aditya chavan <aditma...@gmail.com> wrote:
> hey can anyone help me my query posted before of photo upload. i need
> your assistant asap to complete my project.
>
> On Sun, Nov 1, 2009 at 4:27 PM, Gunawan Hadikusumo <
>
> john.hadikus...@gmail.com> wrote:
> > 250 $ for the services.......
>

Vitaly Maslevskiy

unread,
Nov 2, 2009, 9:09:24 AM11/2/09
to dotnetde...@googlegroups.com

Vitaly Maslevskiy

unread,
Nov 2, 2009, 11:32:23 AM11/2/09
to dotnetde...@googlegroups.com
@aditya chavan

3) Store in DB as BLOB

Probably best approach, before storing you can convert/resize image to
store it in same format/size.

2009/11/2 ThanderMaX <anirud...@gmail.com>:

aditya chavan

unread,
Nov 3, 2009, 1:06:13 PM11/3/09
to dotnetde...@googlegroups.com
ok thank you for replying 

ok now what if i upload the pic and save the pic in database and displaying it in a picture box of that profile.
so my doubt how i will be able to display the pic when evr the particular person logs in.
and one more thing its desktop application .. there will be no internet connection in this software.
i hope you all must be getting what i want.

so i just want to know will it work if i save my pic in a database and show it in a picture box of the profile when ever any user logs in..???

or if u have any other simpler method than this pls do tell me..

waiting for ur reply.

Cerebrus

unread,
Nov 4, 2009, 2:14:04 AM11/4/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I have a couple of issues with the presented problem (and the
solutions above) :

1. This is a *desktop app* (and as the OP said, it will only function
on the intranet).

2. The storage location for photos must be centrally accessible by all
computers in the intranet.

3. I have always been against storage of images in the database as
BLOB objects.

Processor Devil

unread,
Nov 4, 2009, 3:16:54 AM11/4/09
to dotnetde...@googlegroups.com
I agree with Cerebrus about BLOBs...
It is against the advantages of database. Well designed database should use relations to save space... so why the hell to store big files there??? There is a file system for this purpose. And if there is an image stored in file system, then you don't need to retrieve every stupid image from database every time you want to show them...

2009/11/4 Cerebrus <zor...@sify.com>

santhosh vs

unread,
Nov 4, 2009, 4:49:57 AM11/4/09
to dotnetde...@googlegroups.com
I prefer file system with a track record in db

santhosh vs

unread,
Nov 4, 2009, 4:53:24 AM11/4/09
to dotnetde...@googlegroups.com
1) Copy it to ur app folder/subfolder
I guess its application data folder and not application folder.
In coming windows versions (Its in vista already) you may came across security plays from ms. so its better sore in application data folder.

On Wed, Nov 4, 2009 at 3:19 PM, santhosh vs <santh...@gmail.com> wrote:
I prefer file system with a track record in db



--

Santhosh V
http://techplex.wordpress.com

Cerebrus

unread,
Nov 4, 2009, 7:31:13 AM11/4/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Lolz! Someone's in a heated mood today... Girlfriend problems,
Processor ?

;-))

On Nov 4, 1:16 pm, Processor Devil <processor.de...@gmail.com> wrote:
... every **stupid** image from database

Vitaly Maslevskiy

unread,
Nov 4, 2009, 3:42:03 AM11/4/09
to dotnetde...@googlegroups.com
Yeah, agree BLOBs is not cool, but IMHO when app doesn't deal much
with images/files
and they are not big
there are few advantages

1. Easy backup/restore
2. No need to grant user access to "storage" folder

If SQL Serrver 2008 used , FILESTREAM type can be used to store files
"outside" of database.

Interesting research about:
http://research.microsoft.com/apps/pubs/default.aspx?id=64525

2009/11/4 Processor Devil <process...@gmail.com>:

Processor Devil

unread,
Nov 4, 2009, 7:58:20 AM11/4/09
to dotnetde...@googlegroups.com
Well, I am at work now (just finishing project so I have some time to spare and share) :)

2009/11/4 Cerebrus <zor...@sify.com>

aditya chavan

unread,
Nov 4, 2009, 8:17:57 AM11/4/09
to dotnetde...@googlegroups.com
ok

 @ Cerebrus 

According to you storing images as BLOB is not good .. even i agree with professor that y to store big file over.. then can you or anyone else tell me whats is the better option for this. 
and ya system is on intranet, going to work among  not more than 10 PC and a server. 

and my problem was that my application is like orkut profile where a person can change his profile pic anytime from any pc he/she access ( among that 10 PCs).
i hope u guys got it with the problem..!!! 

Thank you

Processor Devil

unread,
Nov 4, 2009, 10:41:03 AM11/4/09
to dotnetde...@googlegroups.com
so you need server side with all those stored images, etc and some desktop application to access it...
you can make your work easier if you just do all those precious coding in asp.net and then just make "client" with webbrowser widget :D

2009/11/4 aditya chavan <adit...@gmail.com>

InfRes

unread,
Nov 6, 2009, 5:58:20 PM11/6/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Cerebrus,

Just wondering your reasoning for being against storing images in the
DB?

It makes sense in this senario, as profile images are likely to be
small

Also in this case the image will have plenty of metadata for it in the
database
and storing them together makes sense.

While these are 'public profile' images, another pro of storing images
in the db
is that they are subject to the same security as the rest of the data
in the application.

Sql Server Filestream type is mentioned here too, and while this
offers the best of both worlds, it does also mean
allowing the database run os tasks which may or may not be
desireable...

Coming from an enterprise content management background, where this is
common
(granted the enterprise content databases are optimised for the bigger
files)
I'd be interested to hear your counter arguments.

Charles A. Lopez

unread,
Nov 6, 2009, 11:00:53 PM11/6/09
to dotnetde...@googlegroups.com
Do you have a specification of what kind of "pictures" are acceptable to your system?

2009/11/1 aditya chavan <adit...@gmail.com>



--
Charles A. Lopez
charle...@gmail.com

Registered Microsoft Partner

New York City, NY

I'm running on Windows 7 Build 7100

Quality Software Works

aditya chavan

unread,
Nov 6, 2009, 9:02:05 PM11/6/09
to dotnetde...@googlegroups.com
ok then can any tell me another way of storing the images if not in database...!! 

aditya chavan

unread,
Nov 7, 2009, 12:00:23 PM11/7/09
to dotnetde...@googlegroups.com
ya mostly it will of small crop photo or if they any passport photo .. and it will in jpeg format only...!! 

ThanderMaX

unread,
Nov 8, 2009, 8:24:13 AM11/8/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
YAWN!!

After long discussion

On Nov 7, 10:00 pm, aditya chavan <aditma...@gmail.com> wrote:
> ya mostly it will of small crop photo or if they any passport photo .. and
> it will in jpeg format only...!!
>
> On Sat, Nov 7, 2009 at 9:30 AM, Charles A. Lopez <charlesalo...@gmail.com>wrote:
>
> > Do you have a specification of what kind of "pictures" are acceptable to
> > your system?
>
> > 2009/11/1 aditya chavan <aditma...@gmail.com>
>
> > Hello,
>
> >> I am new in this C#  .net platform.
> >> I have a project in which i need to make a registration form which has a
> >> profile pic of a particular person.
> >> now in this i need to make such a application which would upload a pic of
> >> person by browsing folders and it should upload in the place where it
> >> is assigned. plus it should not take the path if the person open
> >> his/her's profile she should see her pic means a path independent pic.
> >> just like how we set any orkut profile pic or face book pic.
>
> >> so can anyone help me with this how can i develope it.. or provide code
> >> for this.. if anyone have already developed it.
> >> and ya one think its a desktop application its not connected through
> >> internet its in office network.
>
> >> waiting for reply..!!
>
> >> Regards
>
> >> Aditya Chavan
>
> > --
> > Charles A. Lopez
> > charlesalo...@gmail.com
Reply all
Reply to author
Forward
0 new messages