Click here to Skip to main content
15,896,153 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Disable linker warnings Pin
Prakash Nadar15-Oct-05 19:13
Prakash Nadar15-Oct-05 19:13 
AnswerRe: Disable linker warnings Pin
ThatsAlok16-Oct-05 18:46
ThatsAlok16-Oct-05 18:46 
QuestionRe: Disable linker warnings Pin
leppie17-Oct-05 1:16
leppie17-Oct-05 1:16 
QuestionExiting an application Pin
karmendra_js15-Oct-05 2:51
karmendra_js15-Oct-05 2:51 
AnswerRe: Exiting an application Pin
sunit515-Oct-05 3:23
sunit515-Oct-05 3:23 
GeneralRe: Exiting an application Pin
sunit515-Oct-05 3:26
sunit515-Oct-05 3:26 
AnswerRe: Exiting an application Pin
ThatsAlok15-Oct-05 4:49
ThatsAlok15-Oct-05 4:49 
QuestionUsing CByteArray storing Image data into Database Pin
snprani15-Oct-05 2:37
snprani15-Oct-05 2:37 
Hi

I am using PostgreSQL as my Database. I have derived one Table using CRecordset. I have to use CByteArray to store Images into that table. I am using this way. is there any wrong in my code plz help me.

CCitizenPhoto rs;
rs.AddNew();
rs.m_sno = sno;
CFile f;
f.Open("Photo.jpg",CFile::modeRead);
rs.m_photo.SetSize(f.GetLength());
f.Read(rs.m_photo.GetData(),f.GetLength());
f.Close();
rs.SetFieldDirty(&rs.m_photo);
rs.SetFieldNull(&rs.m_photo,FALSE);
rs.Update();
rs.Close();

when i am running this code it is giving Error as Data Truncated.
I have Initialized MAXSIZE with 36000.
RFX_Binary(pFX,_T("[photo]",m_photo,MAXSIZE);

When i am storing of 10K image it is storing nicely and i am able to retrieve also. But more than 10k it is giving error as Data truncated. it is unable to store and retrive. both places giving error as Data truncated.


Plz help me
Thans in advance.

QuestionWindows Startup Pin
extus15-Oct-05 1:00
extus15-Oct-05 1:00 
AnswerRe: Windows Startup Pin
ddmcr15-Oct-05 1:24
ddmcr15-Oct-05 1:24 
AnswerRe: Windows Startup Pin
Fired Fish15-Oct-05 1:29
Fired Fish15-Oct-05 1:29 
AnswerRe: Windows Startup Pin
ThatsAlok15-Oct-05 4:48
ThatsAlok15-Oct-05 4:48 
QuestionWhere can I input parameter in VC7 when I debugger? Pin
chenxiujie15-Oct-05 0:56
chenxiujie15-Oct-05 0:56 
AnswerRe: Where can I input parameter in VC7 when I debugger? Pin
Member 168985515-Oct-05 1:22
Member 168985515-Oct-05 1:22 
AnswerRe: Where can I input parameter in VC7 when I debugger? Pin
S. Senthil Kumar15-Oct-05 1:49
S. Senthil Kumar15-Oct-05 1:49 
GeneralRe: Where can I input parameter in VC7 when I debugger? Pin
chenxiujie15-Oct-05 2:07
chenxiujie15-Oct-05 2:07 
AnswerRe: Where can I input parameter in VC7 when I debugger? Pin
Fired Fish15-Oct-05 2:19
Fired Fish15-Oct-05 2:19 
Questionhow to create a DIB bitmap with a array Pin
daojinliu15-Oct-05 0:53
daojinliu15-Oct-05 0:53 
Questionprotected, public and private Pin
karmendra_js15-Oct-05 0:44
karmendra_js15-Oct-05 0:44 
AnswerRe: protected, public and private Pin
S. Senthil Kumar15-Oct-05 0:51
S. Senthil Kumar15-Oct-05 0:51 
AnswerRe: protected, public and private Pin
Gary R. Wheeler15-Oct-05 2:50
Gary R. Wheeler15-Oct-05 2:50 
AnswerRe: protected, public and private Pin
ThatsAlok15-Oct-05 4:53
ThatsAlok15-Oct-05 4:53 
QuestionInitial OnPaint Pin
Trollslayer15-Oct-05 0:43
mentorTrollslayer15-Oct-05 0:43 
AnswerRe: Initial OnPaint Pin
Prakash Nadar15-Oct-05 0:53
Prakash Nadar15-Oct-05 0:53 
GeneralRe: Initial OnPaint Pin
Trollslayer15-Oct-05 0:59
mentorTrollslayer15-Oct-05 0:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.