Register and join over 40,000 other developers!
Recent Topics
-
Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
-
Learn algorithms and programming concepts
johnnylo - Apr 23 2019 07:49 AM
-
Job Gig PHP Form Needed
PJohnson - Apr 18 2019 03:55 AM
-
How to make code run differently depending on the platform it is running on?
xarzu - Apr 05 2019 09:17 AM
-
How do I set a breakpoint in an attached process in visual studio
xarzu - Apr 04 2019 11:47 AM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- asp.net
- import
- syntax
- hardware
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- javascript
- programming
- android
- css
- assembly
- c
- form
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- sql
- python
- setup
- help
- game
- combobox
- binary
- hello world
- grid
- innerHTML

10 replies to this topic
#1
Posted 01 October 2012 - 11:30 PM
hi :
how i can retrieve image in my database using phpmyadmin
and there are any method better than phpmyadmin to make my database
thank you for helping me
how i can retrieve image in my database using phpmyadmin
and there are any method better than phpmyadmin to make my database
thank you for helping me
#2
Posted 02 October 2012 - 07:15 AM
You're going to have an issue with retreiving it, because the image is stored as binary data. PHPmyAdmin really wasn't meant for extracting that binary data, which could be an image, or a PDF, or a Word document. I would write a small PHP app to do that, instead.
As to how to make your database, that depends on the database. MySQL works well with PHPMyAdmin, but if you're using SQL Server or Oracle, then their tools would probably be best. I use SQuirreL SQL Client when working with databases, as it works with any of them quite well.
As to how to make your database, that depends on the database. MySQL works well with PHPMyAdmin, but if you're using SQL Server or Oracle, then their tools would probably be best. I use SQuirreL SQL Client when working with databases, as it works with any of them quite well.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
My MineCraft server site: http://banishedwings.enjin.com/
#3
Posted 02 October 2012 - 08:10 AM
I think you need to custom your app a littble ... pull it as binary data and convert it to image. I don't think there is any option in PhpMyAdmin to do this.
www.pickmike.com
I don't just develop software. I find solutions to your business needs.
#4
Posted 02 October 2012 - 08:45 AM
I have to ask why you're storing images in a database? Normally, the database will contain a reference to an image, like it's location on the server or web. The overhead of storing and retrieving images from a DB is rather large.
My Blog: http://forum.codecal...699-blog-77241/
"Women and Music: I'm always amazed by other people's choices." - David Lee Roth
"Women and Music: I'm always amazed by other people's choices." - David Lee Roth
#5
Posted 02 October 2012 - 11:51 AM
Storing images in DB can be very good at times. The images is easier to handle in one way, as you don't have to think about unique file names and much more. Also, a hacker which reach the file system don't find the images directly but need to search through the db for it. Also, the images isn't accessible by a url directly so you can build in a security layer in your server side language to prevent misusage etc.I have to ask why you're storing images in a database? Normally, the database will contain a reference to an image, like it's location on the server or web. The overhead of storing and retrieving images from a DB is rather large.
I'm a System developer at XLENT Consultant Group mainly working with SugarCRM.
Please DO NOT send mail or PM to me with programming questions, post them in the appropriate forum instead, where I and others can answer you.
#6
Posted 03 October 2012 - 05:01 AM
If security is a concern, put them in a location that is not accessible by the web server and write a script that handles security and serves up the files. When necessary, I write a httphandler to do just that.
There are many reason against storing images in a DB :
1. If your DB becomes corrupt to the point backups wont fix it, you loose your graphics as well as your data.
2. if there is any chance that you will migrate to a different database platform, your current BLOB format might be incompatible with, or at least a pain to convert to, the new format -- since, like web browsers, each vendor has implemented things with their own slant.
There are many reason against storing images in a DB :
1. If your DB becomes corrupt to the point backups wont fix it, you loose your graphics as well as your data.
2. if there is any chance that you will migrate to a different database platform, your current BLOB format might be incompatible with, or at least a pain to convert to, the new format -- since, like web browsers, each vendor has implemented things with their own slant.
My Blog: http://forum.codecal...699-blog-77241/
"Women and Music: I'm always amazed by other people's choices." - David Lee Roth
"Women and Music: I'm always amazed by other people's choices." - David Lee Roth
#7
Posted 03 October 2012 - 05:53 AM
Everything has pros and cons. You have to choose when to use the features and when not to. There is no such thing as the perfect condition for a feature,, and there is no feature that don't have a good occurance when to use it, otherwise it hadn't been created.
I'm a System developer at XLENT Consultant Group mainly working with SugarCRM.
Please DO NOT send mail or PM to me with programming questions, post them in the appropriate forum instead, where I and others can answer you.
#8
Posted 04 October 2012 - 04:55 AM
My point is that it is frowned upon in the programming world. Of course anyone is free to architect their project as they wish. There are good practices and bad ones. Putting website graphics in a DB is a bad one.
My Blog: http://forum.codecal...699-blog-77241/
"Women and Music: I'm always amazed by other people's choices." - David Lee Roth
"Women and Music: I'm always amazed by other people's choices." - David Lee Roth
#9
Posted 04 October 2012 - 03:40 PM
Well, the website graphics shouldn't be in a db, there I agree. But user pictures on a website can absolutely be stored in a db...
I'm a System developer at XLENT Consultant Group mainly working with SugarCRM.
Please DO NOT send mail or PM to me with programming questions, post them in the appropriate forum instead, where I and others can answer you.
#10
Posted 14 October 2012 - 05:36 PM
In theory, theory and practice are the same. In practice they're different.
The main disadvantage is the terrific overwork you're putting on the database. Get hit by a few thousand requests for 10 images and your database is dying. (Never think that your website isn't going to be visited by thousands of people - doing so gives you a website you can't upgrade easily. Think AOL's or CNN's home page.)
"Designing for crash" usually results in crashes.
In over 20 years, I've never found one.Storing images in DB can be very good at times.
You never do - that's one thing computers are good at. You just let the computer create a unique name. (PHP even has a GUID function.)The images is easier to handle in one way, as you don't have to think about unique file names and much more.
If the files aren't in your document path, he can't find the files.Also, a hacker which reach the file system don't find the images directly but need to search through the db for it.
See above.Also, the images isn't accessible by a url directly so you can build in a security layer in your server side language to prevent misusage etc.
The main disadvantage is the terrific overwork you're putting on the database. Get hit by a few thousand requests for 10 images and your database is dying. (Never think that your website isn't going to be visited by thousands of people - doing so gives you a website you can't upgrade easily. Think AOL's or CNN's home page.)
"Designing for crash" usually results in crashes.
#11
Posted 25 October 2012 - 06:19 AM
I have developed a database where images were required to be stored in the DB not in the file system, but only once. These were photos taken by surveyors.
This was due to the client specifying that the DB needed to be independent of it's environment, i.e. they did not have the control over the file system / folder structures and couldn't ensure that these would not change.
They also wanted all the data to be contained within the database back-up...
This was due to the client specifying that the DB needed to be independent of it's environment, i.e. they did not have the control over the file system / folder structures and couldn't ensure that these would not change.
They also wanted all the data to be contained within the database back-up...
There are two ways to write error-free programs; only the third one works.
Also tagged with one or more of these keywords: database
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download