[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 653
  • 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
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
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

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

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