Results 1 to 13 of 13
Thread: java to mysql
- 04-26-2008, 08:11 AM #1
Member
- Join Date
- Apr 2008
- Posts
- 16
- Rep Power
- 0
- 04-27-2008, 06:26 AM #2
What did Google said?
have you also post this in Database forum?freedom exists in the world of ideas
- 04-27-2008, 03:00 PM #3
Member
- Join Date
- Aug 2007
- Posts
- 20
- Rep Power
- 0
actually i'm not 100% pos but you cant actually store an image in a database, but you can store the name of it.
I.E.
Insert into X VALUES("myimage.jpg");
- 04-27-2008, 05:18 PM #4
Just a suggestion... im not sure if this is possible....
What if you will encode the image data in your own pattern...
eg. weird characters change to readable characters....
And store the encoded data in the database...
Maybe if implemented, you will expect more comparisons...
1 for encoder, also 1 for decoder....freedom exists in the world of ideas
- 04-28-2008, 05:28 AM #5
Member
- Join Date
- Aug 2007
- Posts
- 20
- Rep Power
- 0
the problem with encoding data to place into a database is selecting the right column datatype. Now it would be entirly possible to store an encrypted item in a database as long as you set it to nvarchar[MAX].
that makes it inefficiant though. Its better to store the image filename and just retrieve it.
- 04-28-2008, 05:44 AM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
In simple word convert the image into binaries and store it in a database as a image(image data type)
- 04-28-2008, 05:46 AM #7
Member
- Join Date
- Aug 2007
- Posts
- 20
- Rep Power
- 0
hrm interesting. Didn't know that there was an image data type.
- 04-28-2008, 06:55 AM #8
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 04-28-2008, 07:15 AM #9
You can store images into DB by converting images into byte streams.
sanjeev,संजीव
- 04-28-2008, 07:33 AM #10
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 04-28-2008, 07:41 AM #11
Yes pal you can do it easily... just convert the image into ByteStream and then using BLOB data type in db you can store it into db.
please check the thread....
Check Itsanjeev,संजीव
- 04-28-2008, 07:46 AM #12
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Ah, got it. I remember work with BLOB at my C++ project. Thanks Sanjeev. And also thanks for the link.
- 04-28-2008, 07:48 AM #13
Similar Threads
-
java to mysql
By thamizhisai in forum Advanced JavaReplies: 1Last Post: 04-26-2008, 08:21 AM -
mySQL HELP!!!
By ace84 in forum New To JavaReplies: 0Last Post: 04-19-2008, 10:39 PM -
Java program that transfers stock prices to MySQL database
By naipulb in forum New To JavaReplies: 2Last Post: 04-17-2008, 05:02 PM -
MySQL 5.0 data backup from java
By sanjay_sharma77 in forum JDBCReplies: 1Last Post: 11-06-2007, 12:19 PM -
Mysql Help
By Sumendra Maharjan in forum JDBCReplies: 1Last Post: 08-08-2007, 01:19 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks