How to Load/Save Image in database using VC++ MFC
-
Sub : How to Load/Save Image in database using VC++ MFC Hi Guys... Can any body help me... I want to save image in database..but i'm not finding any sample code anywhere... can u provide me..I'll be very thankful to u... So nice of u.. u can send attach-ment at sumit_kapoor1980@hotmail.com Thanks..Sumit ---Sumit Kapoor---
-
Sub : How to Load/Save Image in database using VC++ MFC Hi Guys... Can any body help me... I want to save image in database..but i'm not finding any sample code anywhere... can u provide me..I'll be very thankful to u... So nice of u.. u can send attach-ment at sumit_kapoor1980@hotmail.com Thanks..Sumit ---Sumit Kapoor---
-
Thanks for help..Maxwell Chen One thinge more to ask is.. How to handle other Image format..such as JPG, Tiff, Gif etc... I think article is based on Bmp only...What do u say...let me know if u have any idea... Thanks for last reply.. sumit ---Sumit Kapoor---
-
Thanks for help..Maxwell Chen One thinge more to ask is.. How to handle other Image format..such as JPG, Tiff, Gif etc... I think article is based on Bmp only...What do u say...let me know if u have any idea... Thanks for last reply.. sumit ---Sumit Kapoor---
No idea, sorry! I am not good in image processing. But there are some articles out there in CodeProject for various image helper classes such as CPictureEx or something. The way to go would be: using different routines to handle different file types in OnSave(), and storing the image (of certain file name extension) with a specific flag in database. For example: TABLE ImageGallery
[BLOB] - [Type] - [Size]
{...image A...}, JPEG, 258368
{...image B...}, TIFF, 8942937Maxwell Chen
-
No idea, sorry! I am not good in image processing. But there are some articles out there in CodeProject for various image helper classes such as CPictureEx or something. The way to go would be: using different routines to handle different file types in OnSave(), and storing the image (of certain file name extension) with a specific flag in database. For example: TABLE ImageGallery
[BLOB] - [Type] - [Size]
{...image A...}, JPEG, 258368
{...image B...}, TIFF, 8942937Maxwell Chen
Hi.. thanks again for reply... Actully I want to save JPEG(I'm particular to JPEG Image Type..So I want help on saving/Loading JPEG Image)... if U find any sample or code Then let me know..I'll be thnaks full to u.. i've added your e-mail in my yahoo messanger... U can chat with me any time... THanks again Bye.. --Sumit Kapoor---
-
Hi.. thanks again for reply... Actully I want to save JPEG(I'm particular to JPEG Image Type..So I want help on saving/Loading JPEG Image)... if U find any sample or code Then let me know..I'll be thnaks full to u.. i've added your e-mail in my yahoo messanger... U can chat with me any time... THanks again Bye.. --Sumit Kapoor---
Take in account that saving images to a database is a terrible principle! Not only the DB gets big in no time, but the process of setting and retrieving images from the database is very slow! The best way is to store the images as files in the disk and then store the path in the database. Of course that can complicate your program, but if speed is a requirement, you should consider NOT saving them to the databse.
-
Take in account that saving images to a database is a terrible principle! Not only the DB gets big in no time, but the process of setting and retrieving images from the database is very slow! The best way is to store the images as files in the disk and then store the path in the database. Of course that can complicate your program, but if speed is a requirement, you should consider NOT saving them to the databse.
Miguel Lopes wrote: The best way is to store the images as files in the disk and then store the path in the database. Of course that can complicate your program, but if speed is a requirement, you should consider NOT saving them to the databse. I agree with it. This is a better approach! And I guess that Oracle database plays similar tricks with BLOBs. Maxwell Chen
-
Hi.. thanks again for reply... Actully I want to save JPEG(I'm particular to JPEG Image Type..So I want help on saving/Loading JPEG Image)... if U find any sample or code Then let me know..I'll be thnaks full to u.. i've added your e-mail in my yahoo messanger... U can chat with me any time... THanks again Bye.. --Sumit Kapoor---
Sumit Kapoor wrote: Actully I want to save JPEG(I'm particular to JPEG Image Type..So I want help on saving/Loading JPEG Image)... Try CxImage[^]. It seems good! Sumit Kapoor wrote: i've added your e-mail in my yahoo messanger... U can chat with me any time... I don't use Yahoo messenger though. But do feel free to email me if any I could help. Remember to write the emails with a legitimate title, because of too many spams in Yahoo Mail. :-D Maxwell Chen