saving image as longblob

Thread Solved

Join Date: Apr 2008
Posts: 5
Reputation: bapak is an unknown quantity at this point 
Solved Threads: 0
bapak bapak is offline Offline
Newbie Poster

saving image as longblob

 
0
  #1
Apr 8th, 2008
i'm using vb.net 2005 express + mysql connector to connect to mysql database.
i want to save image into mysql database. so i've created a table with img field as longblob.

to save the image, first i convert it into byte() and then insert into the table.

the problem is the maximum image size it save only 13b
whereas it should be more than that. ??? please, help ?
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 176
Reputation: trudge is an unknown quantity at this point 
Solved Threads: 20
trudge trudge is offline Offline
Junior Poster

Re: saving image as longblob

 
0
  #2
Apr 8th, 2008
The typical solution to this is not to save the image in the database, but the path to the image (or any large binary file for that matter).

MySQL can handle binary data but it is hardly worth the effort getting it to work - the actual image itself can't be searched or modified by the database anyway, so what's the point of putting it in there?
Amer Neely - Web Mechanic
"Others make web sites. We make web sites work!"
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 5
Reputation: bapak is an unknown quantity at this point 
Solved Threads: 0
bapak bapak is offline Offline
Newbie Poster

Re: saving image as longblob

 
0
  #3
Apr 9th, 2008
MySQL is in my database server while user are connecting to the system from client pc. I want to share the image with other user too.

If i put file path in the table, i don't know what is the correct path to save to make sure all user will have the right path to the image + how will user download the image form the server. ???
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 5
Reputation: bapak is an unknown quantity at this point 
Solved Threads: 0
bapak bapak is offline Offline
Newbie Poster

Re: saving image as longblob

 
1
  #4
Apr 9th, 2008
ha, i got it.
the solution can be found at >>>
http://dev.mysql.com/doc/refman/5.0/...sing-blob.html
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1
Reputation: moquitto is an unknown quantity at this point 
Solved Threads: 0
moquitto moquitto is offline Offline
Newbie Poster

Re: saving image as longblob

 
0
  #5
Oct 30th, 2008
yes please help I am having the same problem
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the MySQL Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC