• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 657
  • Last Modified:

insert the jpg file into mysql table using vc++

Hi Experts
how to insert the jpg file into mysql table using vc++
0
arunkumarmanas
Asked:
arunkumarmanas
  • 5
  • 4
  • 2
4 Solutions
 
BadotzCommented:
<$.02>
You would be better off to insert the NAME of the .jpg file rather than the .jpg file itself.
</$.02>
0
 
hesCommented:
Almost agree with Badotz :)
It would be better to store the Path:\Name of the jpg file in the DB
0
 
BadotzCommented:
hes: "Almost" ?
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
hesCommented:
Yep,
Path and Name
0
 
BadotzCommented:
Oh, well, I naturally *assumed* that. But you know what they say...
0
 
hesCommented:
LOL
I don't want the points I just wanted it to be clear to put all the details of the jpg in the database BUT NOT the image itself
0
 
arunkumarmanasAuthor Commented:
I agree with the solution of storing the path of the jpg file instead of storing. But I am in need to store the jpg file. please suggest.
0
 
BadotzCommented:
>>I agree with the solution of storing the path of the jpg file instead of storing. But I am in need to store the jpg file. please suggest. (sic)

We *have* suggested, and you agree. Why do you insist on storing the .JPG?

Unless this is for homework?
0
 
hesCommented:
If you Absolutely you would have to use a blob datatype and insert the jpg into that field
0
 
arunkumarmanasAuthor Commented:
Accept with the solutions provided
0
 
BadotzCommented:
Grade "B"? Was I bad?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

  • 5
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now