Click here to Skip to main content
       

Database

 
GeneralRe: Problem saving file to MySQL Pinmemberjrahma21-Jul-12 11:57 
GeneralRe: Problem saving file to MySQL Pinmemberjschell22-Jul-12 6:56 
AnswerRe: Problem saving file to MySQL PinmemberEddy Vluggen21-Jul-12 12:58 
GeneralRe: Problem saving file to MySQL Pinmemberjrahma22-Jul-12 8:39 
GeneralRe: Problem saving file to MySQL PinmemberEddy Vluggen22-Jul-12 10:24 
GeneralRe: Problem saving file to MySQL Pinmemberjrahma22-Jul-12 10:29 
GeneralRe: Problem saving file to MySQL PinmemberEddy Vluggen22-Jul-12 10:42 
GeneralRe: Problem saving file to MySQL PinmvpLuc Pattyn22-Jul-12 10:43 
1.
I don't recall ever having seen a Word document that would fit in 255 bytes.
 
I just created a Word document containing a single letter ("a"), saved it to disk, and found a file size of 29KB. That was Word 2007 BTW.
 
2.
The only type that is suited for storing binary data IMO is a "blob".
MySQL offers blob, and some size variants thereof. Use those. I never used "binary".
 
3.
Yes, saving and retrieving data to/from a database is tricky; as long as it doesn't work, it is hard to tell where the problem lies; it could be in the saving part, or in the retrieving part. And when you have several bugs at once (I'm sure you do!) fixing any one of them doesn't seem to help at all, until you get to the last one.
 
The good thing is, you have to solve it only once, as it would apply to any kind of data, as long as it fits a byte array model, it is all the same.
 
And the best thing is, millions of people have done this before, so the solution is bound to be available everywhere you look.
 
Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: Problem saving file to MySQL Pinmemberjrahma22-Jul-12 11:50 
AnswerRe: Problem saving file to MySQL PinmvpLuc Pattyn22-Jul-12 11:57 
GeneralRe: Problem saving file to MySQL Pinmemberjrahma22-Jul-12 12:18 
GeneralRe: Problem saving file to MySQL PinmemberEddy Vluggen22-Jul-12 23:59 
QuestionSQL server 2008 Replication problem PinmemberHy Chanhan19-Jul-12 17:12 
AnswerRe: SQL server 2008 Replication problem Pinmember_Amy19-Jul-12 21:31 
GeneralRe: SQL server 2008 Replication problem PinmemberHy Chanhan19-Jul-12 21:38 
GeneralRe: SQL server 2008 Replication problem Pinmember_Amy19-Jul-12 22:34 
Questionproblem modeling messages tables Pinmemberahmadiss19-Jul-12 6:10 
AnswerRe: problem modeling messages tables PinmemberPIEBALDconsult19-Jul-12 12:24 
GeneralRe: problem modeling messages tables Pinmemberahmadiss20-Jul-12 0:44 
GeneralRe: problem modeling messages tables PinmemberPIEBALDconsult20-Jul-12 3:40 
GeneralRe: problem modeling messages tables Pinmemberahmadiss22-Jul-12 5:12 
Questionhow to stop sql server 2005 Pinmembersumeet kumar Attri18-Jul-12 21:38 
AnswerRe: how to stop sql server 2005 PinmemberKarthik Harve18-Jul-12 22:26 
GeneralMaking a row-based Iteration of a Bulk-Insertion [modified] PinmemberSkyRunner18-Jul-12 21:16 
AnswerRe: Making a row-based Iteration of a Bulk-Insertion PinmemberEddy Vluggen18-Jul-12 23:34 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 29 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid